Browse Source

Narrowed the inputevent table

Made the input event table narrower by specifying line breaks. The too-wide version appears to have messed up PDF generation.
Griatch 9 years ago
parent
commit
6728970648
1 changed files with 31 additions and 21 deletions
  1. 31 21
      tutorials/engine/inputevent.rst

+ 31 - 21
tutorials/engine/inputevent.rst

@@ -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
 -------
 -------