KeyboardKeyCodeToModifierKey Method |
Gets the modifier key for the specified key code.
For example, KeyCode.LeftShift will return ModifierKey.Shift.
Namespace:
Rewired
Assembly:
Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static ModifierKey KeyCodeToModifierKey(
KeyCode key
)
Parameters
- key
- Type: KeyCode
The key code of the key.
Return Value
Type:
ModifierKeyThe modifier key for the specified key code. If the key code does not represent a modifier key, ModifierKey.None will be returned.
See Also