-
Notifications
You must be signed in to change notification settings - Fork 2
Gamepad
themixray edited this page Dec 12, 2021
·
9 revisions
Is button pressed
pygwin.gamepad.isPressed(btn)
- btn Gamepad button
Returns bool
Get buttons pressed
pygwin.gamepad.getPressed()
Returns dict
Gamepad joysticks
Direction Table | ||
---|---|---|
Direction | X | Y |
Up | 0 | 32767 |
Down | 0 | -32767 |
Left | -32767 | 0 |
Right | 32767 | 0 |
pygwin.gamepad.leftJoystick
Returns list
pygwin.gamepad.rightJoystick
Returns list
Reset gamepad
pygwin.gamepad.reset()
Returns None
Close gamepad
pygwin.gamepad.close()
Returns None