|
| None | __init__ (self, int index=0) |
| | An opened SDL joystick.
|
| int | axis (self, int index) |
| bool | button (self, int index) |
| None | close (self) |
| int | count (cls) |
Definition at line 7 of file input.py.
◆ __init__()
| None mxvk_wrap.input.Joystick.__init__ |
( |
| self, |
|
|
int | index = 0 ) |
An opened SDL joystick.
Definition at line 10 of file input.py.
10 def __init__(self, index: int = 0) -> None:
11
13 self.native.open(index)
14
RAII wrapper for a raw SDL_Joystick device.
◆ axis()
| int mxvk_wrap.input.Joystick.axis |
( |
| self, |
|
|
int | index ) |
Definition at line 24 of file input.py.
24 def axis(self, index: int) -> int:
25
26 return self.native.axis(index)
27
◆ button()
| bool mxvk_wrap.input.Joystick.button |
( |
| self, |
|
|
int | index ) |
Definition at line 20 of file input.py.
20 def button(self, index: int) -> bool:
21
22 return self.native.button(index)
23
◆ close()
| None mxvk_wrap.input.Joystick.close |
( |
| self | ) |
|
Definition at line 28 of file input.py.
28 def close(self) -> None:
29
30 if self.native is not None:
31 self.native.close()
32 self.native = None
33
34
◆ count()
| int mxvk_wrap.input.Joystick.count |
( |
| cls | ) |
|
Definition at line 16 of file input.py.
16 def count(cls) -> int:
17
18 return mxvk.Joystick.count()
19
◆ native
Open joystick index.
Definition at line 12 of file input.py.
The documentation for this class was generated from the following file: