Provides a helpful wrapper over window input.
Instance methods
get_center
Returns the center of the window
Sourceget_key(key_code : Key) : Bool
Checks if the key is currently down
Sourceget_key_pressed(key_code : Key) : Bool
Checks if the key was pressed in this frame
Sourceget_key_released(key_code : Key) : Bool
Checks if the key was released in this frame
Sourceget_keys
Returns an array of keys that are currently pressed
Sourceget_mouse_position
Returns the position of the mouse
Sourceset_cursor(enabled : Bool)
Controls the cursor visibility within the window
SourceSets the mouse position within the window
Sourcetick
Processes the window input during each update tick
Sourcewindow_size
Returns the size of the window
Source