|
@@ -82,27 +82,37 @@ Example of changing event type.
|
|
|
|
|
|
There are several types of InputEvent, described in the table below:
|
|
There are several types of InputEvent, described in the table below:
|
|
|
|
|
|
-+-------------------------------------------------------------------+--------------------+-------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| Event | Type Index | Description |
|
|
|
|
-+-------------------------------------------------------------------+--------------------+-------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`InputEvent <class_InputEvent>` | NONE | Empty Input Event |
|
|
|
|
-+-------------------------------------------------------------------+--------------------+-------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`InputEventKey <class_InputEventKey>` | KEY | Contains a scancode and unicode value, as well as modifiers |
|
|
|
|
-+-------------------------------------------------------------------+--------------------+-------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`InputEventMouseButton <class_InputEventMouseButton>` | MOUSE_BUTTON | Contains click information, such as button, modifiers, etc. |
|
|
|
|
-+-------------------------------------------------------------------+--------------------+-------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`InputEventMouseMotion <class_InputEventMouseMotion>` | MOUSE_MOTION | Contains motion information, such as relative, absolute positions and speed. |
|
|
|
|
-+-------------------------------------------------------------------+--------------------+-------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`InputEventJoystickMotion <class_InputEventJoystickMotion>` | JOYSTICK_MOTION | Contains Joystick/Joypad analog axis information. |
|
|
|
|
-+-------------------------------------------------------------------+--------------------+-------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`InputEventJoystickButton <class_InputEventJoystickButton>` | JOYSTICK_BUTTON | Contains Joystick/Joypad button information. |
|
|
|
|
-+-------------------------------------------------------------------+--------------------+-------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`InputEventScreenTouch <class_InputEventScreenTouch>` | SCREEN_TOUCH | Contains multi-touch press/release information. (only available on mobile devices) |
|
|
|
|
-+-------------------------------------------------------------------+--------------------+-------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`InputEventScreenDrag <class_InputEventScreenDrag>` | SCREEN_DRAG | Contains multi-touch drag information. (only available on mobile devices) |
|
|
|
|
-+-------------------------------------------------------------------+--------------------+-------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`InputEventAction <class_InputEventAction>` | SCREEN_ACTION | Contains a generic action. These events are often generated by the programmer as feedback. (more on this below) |
|
|
|
|
-+-------------------------------------------------------------------+--------------------+-------------------------------------------------------------------------------------------------------------------+
|
|
|
|
|
|
++-------------------------------------------------------------------+--------------------+-----------------------------------------+
|
|
|
|
+| Event | Type Index | Description |
|
|
|
|
++-------------------------------------------------------------------+--------------------+-----------------------------------------+
|
|
|
|
+| :ref:`InputEvent <class_InputEvent>` | NONE | Empty Input Event |
|
|
|
|
++-------------------------------------------------------------------+--------------------+-----------------------------------------+
|
|
|
|
+| :ref:`InputEventKey <class_InputEventKey>` | KEY | Contains a scancode and unicode value, |
|
|
|
|
+| | | as well as modifiers |
|
|
|
|
++-------------------------------------------------------------------+--------------------+-----------------------------------------+
|
|
|
|
+| :ref:`InputEventMouseButton <class_InputEventMouseButton>` | MOUSE_BUTTON | Contains click information, such as |
|
|
|
|
+| | | button, modifiers, etc. |
|
|
|
|
++-------------------------------------------------------------------+--------------------+-----------------------------------------+
|
|
|
|
+| :ref:`InputEventMouseMotion <class_InputEventMouseMotion>` | MOUSE_MOTION | Contains motion information, such as |
|
|
|
|
+| | | relative, absolute positions and speed. |
|
|
|
|
++-------------------------------------------------------------------+--------------------+-----------------------------------------+
|
|
|
|
+| :ref:`InputEventJoystickMotion <class_InputEventJoystickMotion>` | JOYSTICK_MOTION | Contains Joystick/Joypad analog axis |
|
|
|
|
+| | | information. |
|
|
|
|
++-------------------------------------------------------------------+--------------------+-----------------------------------------+
|
|
|
|
+| :ref:`InputEventJoystickButton <class_InputEventJoystickButton>` | JOYSTICK_BUTTON | Contains Joystick/Joypad button |
|
|
|
|
+| | | information. |
|
|
|
|
++-------------------------------------------------------------------+--------------------+-----------------------------------------+
|
|
|
|
+| :ref:`InputEventScreenTouch <class_InputEventScreenTouch>` | SCREEN_TOUCH | Contains multi-touch press/release |
|
|
|
|
+| | | information. (only available on mobile |
|
|
|
|
+| | | devices) |
|
|
|
|
++-------------------------------------------------------------------+--------------------+-----------------------------------------+
|
|
|
|
+| :ref:`InputEventScreenDrag <class_InputEventScreenDrag>` | SCREEN_DRAG | Contains multi-touch drag information. |
|
|
|
|
+| | | (only available on mobile devices) |
|
|
|
|
++-------------------------------------------------------------------+--------------------+-----------------------------------------+
|
|
|
|
+| :ref:`InputEventAction <class_InputEventAction>` | SCREEN_ACTION | Contains a generic action. These events |
|
|
|
|
+| | | are often generated by the programmer |
|
|
|
|
+| | | as feedback. (more on this below) |
|
|
|
|
++-------------------------------------------------------------------+--------------------+-----------------------------------------+
|
|
|
|
|
|
Actions
|
|
Actions
|
|
-------
|
|
-------
|