mirror of
https://github.com/chocolate-doom/joytest.git
synced 2024-11-21 20:01:09 +00:00
Joystick test program
c94b9cc8cb
For most joysticks we can detect when a stick has been pushed outside of the dead zone towards an extreme. But when testing the Gravis Gamepad with a Gamepoert to USB adapter, I found that it was not possible to register a value over ~20000 in some directions. In this kind of case it is not possible using the event code to tell when the stick has been pushed in those directions. So add -pollaxes that will poll once a second and print the value of each axis, as a fallback in case the usual event code doesn't work. Also, adjust the dead zone limit so that > 1/3 of the full range is considered pushing to an extreme. This is consistent with the Chocolate Doom joystick code that assumes this. |
||
---|---|---|
.gitignore | ||
.lvimrc | ||
joytest.c | ||
Makefile | ||
README |
This is a simple joystick test program that uses LibSDL. The purpose is to allow users to gather data about their gamepads/joysticks so that suppot can be added into Chocolate Doom for them.