| 1 |
pyglet.input |
| 2 |
============ |
| 3 |
|
| 4 |
.. automodule:: pyglet.input |
| 5 |
|
| 6 |
.. currentmodule:: pyglet.input |
| 7 |
|
| 8 |
Classes |
| 9 |
------- |
| 10 |
|
| 11 |
.. autoclass:: ControllerManager |
| 12 |
|
| 13 |
.. rubric:: Methods |
| 14 |
|
| 15 |
.. automethod:: get_controllers |
| 16 |
|
| 17 |
.. rubric:: Events |
| 18 |
|
| 19 |
.. automethod:: on_connect |
| 20 |
.. automethod:: on_disconnect |
| 21 |
|
| 22 |
|
| 23 |
.. autoclass:: Device |
| 24 |
:members: |
| 25 |
:undoc-members: |
| 26 |
:show-inheritance: |
| 27 |
|
| 28 |
.. autoclass:: Control |
| 29 |
:show-inheritance: |
| 30 |
|
| 31 |
.. rubric:: Events |
| 32 |
|
| 33 |
.. automethod:: on_change |
| 34 |
|
| 35 |
.. rubric:: Attributes |
| 36 |
|
| 37 |
.. autoattribute:: value |
| 38 |
|
| 39 |
.. autoclass:: RelativeAxis |
| 40 |
:members: |
| 41 |
:undoc-members: |
| 42 |
:show-inheritance: |
| 43 |
|
| 44 |
.. autoclass:: AbsoluteAxis |
| 45 |
:members: |
| 46 |
:undoc-members: |
| 47 |
:show-inheritance: |
| 48 |
|
| 49 |
.. autoclass:: Button |
| 50 |
:show-inheritance: |
| 51 |
|
| 52 |
.. rubric:: Events |
| 53 |
|
| 54 |
.. automethod:: on_press |
| 55 |
.. automethod:: on_release |
| 56 |
|
| 57 |
.. rubric:: Attributes |
| 58 |
|
| 59 |
.. autoattribute:: value |
| 60 |
|
| 61 |
|
| 62 |
.. autoclass:: Controller |
| 63 |
:show-inheritance: |
| 64 |
|
| 65 |
.. rubric:: Methods |
| 66 |
|
| 67 |
.. automethod:: open |
| 68 |
.. automethod:: close |
| 69 |
|
| 70 |
.. rubric:: Events |
| 71 |
|
| 72 |
.. automethod:: on_stick_motion |
| 73 |
.. automethod:: on_dpad_motion |
| 74 |
.. automethod:: on_trigger_motion |
| 75 |
.. automethod:: on_button_press |
| 76 |
.. automethod:: on_button_release |
| 77 |
|
| 78 |
.. autoattribute:: type |
| 79 |
|
| 80 |
|
| 81 |
.. autoclass:: Joystick |
| 82 |
:show-inheritance: |
| 83 |
|
| 84 |
.. rubric:: Methods |
| 85 |
|
| 86 |
.. automethod:: open |
| 87 |
.. automethod:: close |
| 88 |
|
| 89 |
.. rubric:: Events |
| 90 |
|
| 91 |
.. automethod:: on_joyaxis_motion |
| 92 |
.. automethod:: on_joyhat_motion |
| 93 |
.. automethod:: on_joybutton_press |
| 94 |
.. automethod:: on_joybutton_release |
| 95 |
|
| 96 |
|
| 97 |
.. autoclass:: AppleRemote |
| 98 |
:show-inheritance: |
| 99 |
|
| 100 |
.. rubric:: Methods |
| 101 |
|
| 102 |
.. automethod:: open |
| 103 |
.. automethod:: close |
| 104 |
|
| 105 |
.. rubric:: Events |
| 106 |
|
| 107 |
.. automethod:: on_button_press |
| 108 |
.. automethod:: on_button_release |
| 109 |
|
| 110 |
.. autoclass:: Tablet |
| 111 |
:undoc-members: |
| 112 |
|
| 113 |
|
| 114 |
Functions |
| 115 |
--------- |
| 116 |
|
| 117 |
.. currentmodule:: pyglet.input |
| 118 |
|
| 119 |
.. autofunction:: get_apple_remote |
| 120 |
.. autofunction:: get_devices |
| 121 |
.. autofunction:: get_controllers |
| 122 |
.. autofunction:: get_joysticks |
| 123 |
.. autofunction:: get_tablets |
| 124 |
|
| 125 |
Exceptions |
| 126 |
---------- |
| 127 |
|
| 128 |
.. autoclass:: DeviceException |
| 129 |
:members: |
| 130 |
:undoc-members: |
| 131 |
|
| 132 |
.. autoclass:: DeviceOpenException |
| 133 |
:members: |
| 134 |
:undoc-members: |
| 135 |
|
| 136 |
.. autoclass:: DeviceExclusiveException |
| 137 |
:members: |
| 138 |
:undoc-members: |