Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Input

class in Input

Description

Utility class to poll player input events

Constants

NameTypeValueDescription
MouseLeftint0

Left Mouse Button ID

MouseRightint1
MouseMiddleint2
MouseBackint3
MouseForwardint4

Static Properties

NameTypeAccessDescription
mouse_moveVector2get
mouse_scrollVector2get

Static Methods

Return TypeSignatureDescription
boolis_mouse_button_down ( int button )

is mouse button with ID button is in pressed state?

boolis_mouse_button_up ( int button )
boolis_mouse_button_pressed ( int button )
boolis_key_down ( KeyCode key )
boolis_key_up ( KeyCode key )
boolis_key_pressed ( KeyCode key )