Provides a set of key codes that are mapped directly to physical keyboard and mouse keys.
Triggers an event whenever the specified Input.KeyCode is pressed down.
Note: Only one onKeyDown
handler can be defined for a key at any time.
function to call. Pass null
to remove the handler.
key to press.
Triggers every frame while specified Input.KeyCode is pressed.
Note: Only one onKeyPressed
handler can be defined for a key at any time.
function to call. Pass null
to remove the handler.
key to press.
Triggers an event whenever the specified Input.KeyCode is released.
Note: Only one onKeyUp
handler can be defined for a key at any time.
function to call. Pass null
to remove the handler.
key to press.
Input related methods and properties.