Click or drag to resize

KeyboardGetButtonIndexByKeyCode Method

Gets the Button index that corresponds to the specified KeyboardKeyCode.

Namespace: Rewired
Assembly: Rewired_Core (in Rewired_Core.dll) Version: 1.0.0+e8257758c3446d922301bab0e4637a0e5ec1862f
Syntax
C#
public int GetButtonIndexByKeyCode(
	KeyboardKeyCode keyCode
)

Parameters

keyCode  KeyboardKeyCode
The KeyboardKeyCode of the key.

Return Value

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