X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffg_input_devices.c;h=930d93b9e3f1e179c4f6443b4f7f5e7f12286777;hb=af47c3f93c7834b4006c49ec9df6a6ffdd3025de;hp=8cac504c76af390e9123495d7ea478ffdf5a161b;hpb=1b5ee849ba61b667aeba474a7e03406196478bee;p=freeglut diff --git a/src/fg_input_devices.c b/src/fg_input_devices.c index 8cac504..930d93b 100644 --- a/src/fg_input_devices.c +++ b/src/fg_input_devices.c @@ -1,5 +1,5 @@ /* - * freeglut_input_devices.c + * fg_input_devices.c * * Handles miscellaneous input devices via direct serial-port access. * Proper X11 XInput device support is not yet supported. @@ -28,10 +28,6 @@ * DEALINGS IN THE SOFTWARE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - #include #include "fg_internal.h" @@ -166,7 +162,6 @@ static void poll_dials ( int id ) static int dial_state = DIAL_NEW; static int dial_which; static int dial_value; - static int dials[8] = { 0, 0, 0, 0, 0, 0, 0, 0 }; if ( !dialbox_port ) return; @@ -187,7 +182,6 @@ static void poll_dials ( int id ) case DIAL_VALUE_LOW: dial_value |= data; if ( dial_value & 0x8000 ) dial_value -= 0x10000; - dials[dial_which] = dial_value; send_dial_event ( dial_which + 1, dial_value * 360 / 256 ); dial_state = DIAL_WHICH_DEVICE; break;