forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
class_inputevent
Lukas Sägesser edited this page Jun 22, 2015
·
10 revisions
####Category: Built-In Types
Built-in input event data.
- bool is_action ( String action )
- bool is_echo ( )
- bool is_pressed ( )
- void set_as_action ( String action, bool pressed )
- NONE = 0 - Empty input event.
- KEY = 1 - Key event.
- MOUSE_MOTION = 2 - Mouse motion event.
- MOUSE_BUTTON = 3 - Mouse button event.
- JOYSTICK_MOTION = 4 - Jostick motion event.
- JOYSTICK_BUTTON = 5 - Joystick button event.
- SCREEN_TOUCH = 6
- SCREEN_DRAG = 7
- ACTION = 8
Built-in input event data. InputEvent is a built-in engine datatype, given that it's passed around and used so much . Depending on it's type, the members contained can be different, so read the documentation well!. Input events can also represent actions (editable from the project settings).
Return if this input event matches a pre-defined action, no matter the type.
- bool is_echo ( )
Return if this input event is an echo event (usually for key events).
- bool is_pressed ( )
Return if this input event is pressed (for key, mouse, joy button or screen press events).