https://github.com/denilsonsa/pygame-joystick-test
pygame-joystick-test is a small Python program that uses pygame to test joysticks. Upon running, it shows the state (axes, trackballs, hats and buttons) of all detected joysticks. It's a quick and simple way to check how well your joystick works.
https://github.com/denilsonsa/pygame-joystick-test
gamepad joystick joysticks pygame python python2 python3
Last synced: 7 months ago
JSON representation
pygame-joystick-test is a small Python program that uses pygame to test joysticks. Upon running, it shows the state (axes, trackballs, hats and buttons) of all detected joysticks. It's a quick and simple way to check how well your joystick works.
- Host: GitHub
- URL: https://github.com/denilsonsa/pygame-joystick-test
- Owner: denilsonsa
- License: mit
- Created: 2020-06-28T17:32:20.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-05-19T14:45:58.000Z (about 2 years ago)
- Last Synced: 2025-04-12T17:53:25.433Z (about 1 year ago)
- Topics: gamepad, joystick, joysticks, pygame, python, python2, python3
- Language: Python
- Homepage:
- Size: 287 KB
- Stars: 43
- Watchers: 2
- Forks: 13
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
**[pygame-joystick-test][]** is a small Python program that uses [pygame][] to test joysticks. Upon running, it shows the state (axes, trackballs, hats and buttons) of all detected joysticks. It's a quick and simple way to check how well your joystick works. It was written in 2007-09-09 using Python 2 and that code still runs in 2020 in Python 3.
Requirements:
* Python 2 or 3
* [pygame][] 1.x or 2.x
* I expect `pygame-joystick-test` to be compatible with any system that is supported by `pygame`.
* At least one joystick (or gamepad or any kind of game controller) connected to the system.
* This tool refuses to start unless it detects at least one joystick.
[![pygame-joystick-test demonstration, with two gamepads connected][gif]][gif]
[pygame-joystick-test]: https://github.com/denilsonsa/pygame-joystick-test
[pygame]: https://www.pygame.org/
[gif]: https://denilsonsa.github.io/pygame-joystick-test/pygame-joystick-test.gif