]> git.droids-corp.org - protos/xbee.git/commitdiff
joystick: axis & button are 16 bit
authorFabrice Desclaux <serpilliere@droids-corp.org>
Mon, 20 Feb 2012 18:54:26 +0000 (19:54 +0100)
committerFabrice Desclaux <serpilliere@droids-corp.org>
Mon, 20 Feb 2012 18:54:26 +0000 (19:54 +0100)
joystick.h

index 91b8957a92f2dcc265c6cf4eb333c2dff19659c6..73631822ba0ca158964aea71fda498ffa5c96e11 100644 (file)
@@ -36,8 +36,8 @@ struct joystick_info {
        int version;
        unsigned char nb_axis;
        unsigned char nb_buttons;
-       char buttons[JOYSTICK_BUTTON_MAX];
-       char axis[JOYSTICK_AXIS_MAX];
+       int16_t buttons[JOYSTICK_BUTTON_MAX];
+       int16_t axis[JOYSTICK_AXIS_MAX];
        char name[JOYSTICK_NAME_LENGTH];
        uint16_t btnmap[KEY_MAX - BTN_MISC + 1];
        uint8_t axmap[ABS_MAX + 1];