Provides a set of key codes that are mapped directly to physical keyboard and mouse keys.
Note: To map input to the main interaction of all platforms, use primary
.
Returns Vector3
click direction originating from the Camera
.
Use Input.onKeyDown instead.
Triggers an event whenever the specified input is pressed down.
Note: Only one onButtonDown
handler can be defined for a button at any time.
function to call. Pass null
to remove the handler.
button to press.
Use Input.onKeyPressed instead.
Triggers every frame while specified input is pressed.
Note: Only one onButtonPressed
handler can be defined for a button at any time.
function to call. Pass null
to remove the handler.
button to press.
Use Input.onKeyUp instead.
Triggers an event when the main input is released.
Note: Only one onButtonUp
handler can be defined for a button at any time.
function to call. Pass null
to remove the handler.
Use Input.onKeyUp instead.
Triggers an event when specified input is released.
Note: Only one onButtonUp
handler can be defined for a button at any time.
function to call. Pass null
to remove the handler.
button to press.
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.
Generated using TypeDoc
Namespace for input related methods and properties.