From 81d77338ee91c21ceedfc79461b2d051dd2696e9 Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Mon, 20 Feb 2012 19:54:26 +0100 Subject: [PATCH] joystick: axis & button are 16 bit --- joystick.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/joystick.h b/joystick.h index 91b8957..7363182 100644 --- a/joystick.h +++ b/joystick.h @@ -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]; -- 2.39.5