Joystick test program
Find a file
Simon Howard c94b9cc8cb Add -pollaxes flag for special case joysticks.
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.
2015-04-13 21:49:41 -04:00
.gitignore Add .gitignore. 2014-05-04 15:38:28 -04:00
.lvimrc Add .lvimrc. 2014-05-04 16:07:12 -04:00
joytest.c Add -pollaxes flag for special case joysticks. 2015-04-13 21:49:41 -04:00
Makefile Add first version of joystick test program. 2014-05-04 15:37:44 -04:00
README Add README file. 2014-05-04 15:40:20 -04:00

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.