4from ._native
import mxvk
18 return mxvk.Joystick.count()
20 def button(self, index: int) -> bool:
24 def axis(self, index: int) -> int:
30 if self.
native is not None:
46 return mxvk.Controller.count()
48 def button(self, button: int) -> bool:
52 def axis(self, axis: int) -> int:
58 if self.
native is not None:
RAII wrapper for SDL_Gamepad (standard layout mapping).
RAII wrapper for a raw SDL_Joystick device.