Click or drag to resize

KeyboardGetButtonIndexByKeyCode Method

Gets the Button index that corresponds to the specified KeyCode.

Namespace:  Rewired
Assembly:  Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public int GetButtonIndexByKeyCode(
	KeyCode keyCode
)

Parameters

keyCode
Type: KeyCode
The KeyCode of the key.

Return Value

Type: Int32
Button index. -1 if not found.
See Also