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