File: input.rst

package info (click to toggle)
pyglet 1.5.27%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 14,356 kB
  • sloc: python: 98,028; ansic: 171; makefile: 148; sh: 9
file content (103 lines) | stat: -rw-r--r-- 1,612 bytes parent folder | download
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
pyglet.input
============

.. automodule:: pyglet.input

.. currentmodule:: pyglet.input

Classes
-------

.. 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:: 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_joysticks
.. autofunction:: get_tablets

Exceptions
----------

.. autoclass:: DeviceException
  :members:
  :undoc-members:

.. autoclass:: DeviceOpenException
  :members:
  :undoc-members:

.. autoclass:: DeviceExclusiveException
  :members:
  :undoc-members: