forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
class_input
reduz edited this page Apr 10, 2014
·
17 revisions
####Inherits: Object ####Category: Core
- bool is_key_pressed ( int scancode )
- bool is_mouse_button_pressed ( int button )
- bool is_joy_button_pressed ( int device, int button )
- bool is_action_pressed ( String action )
- float get_joy_axis ( int device, int axis )
- Vector3 get_accelerometer ( )
- Vector2 get_mouse_pos ( ) const
- Vector2 get_mouse_speed ( ) const
- int get_mouse_button_mask ( ) const
- void set_mouse_mode ( int mode )
- int get_mouse_mode ( ) const
- MOUSE_MODE_VISIBLE = 0
- MOUSE_MODE_HIDDEN = 1
- MOUSE_MODE_CAPTURED = 2
- Vector2 get_mouse_pos ( ) const
Return the global, unscaled, screen pointer coordinates. If the 2D viewport has been scaled, it may not work well with Camera or controls.