Click or drag to resize

KeyboardKeyCodeToModifierKey Method

Gets the modifier key for the specified key code. For example, KeyboardKeyCode.LeftShift will return ModifierKey.Shift.

Namespace: Rewired
Assembly: Rewired_Core (in Rewired_Core.dll) Version: 1.0.0+e8257758c3446d922301bab0e4637a0e5ec1862f
Syntax
C#
public static ModifierKey KeyCodeToModifierKey(
	KeyboardKeyCode key
)

Parameters

key  KeyboardKeyCode
The key code of the key.

Return Value

ModifierKey
The modifier key for the specified key code. If the key code does not represent a modifier key, ModifierKey.None will be returned.
See Also