Grumbel / sdl-jstest

Simple SDL joystick test application for the console
GNU General Public License v3.0
57 stars 32 forks source link

Small typo causing wrong information when displaying a ball's values. #3

Closed Astrophobia closed 9 years ago

Astrophobia commented 9 years ago

In both sdl2-jstest.c, sdl-jstest.c, there is a small typo that causes the two values displayed for each 'ball' to be the same:

printw("  %2d: %6d %6d\n", i, balls[2*i+0], balls[2*i+0]);

Should be:

printw("  %2d: %6d %6d\n", i, balls[2*i+0], balls[2*i+1]);
Grumbel commented 9 years ago

What kind of hardware does actually emit ball events? Never seen any that does.