From fc0298429a403e76eb6c9b6fb25b6556f08799aa Mon Sep 17 00:00:00 2001 From: Vitaliy Margolen Date: Tue, 21 Aug 2007 07:06:17 -0600 Subject: [PATCH] dinput: Fix compile with old input.h that missing input_absinfo. --- dlls/dinput/joystick_linuxinput.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/dlls/dinput/joystick_linuxinput.c b/dlls/dinput/joystick_linuxinput.c index c0252191de..37ae4a7854 100644 --- a/dlls/dinput/joystick_linuxinput.c +++ b/dlls/dinput/joystick_linuxinput.c @@ -119,6 +119,14 @@ LONG joystick_map_axis(ObjProps *props, int val) #define WINE_JOYSTICK_MAX_POVS 4 #define WINE_JOYSTICK_MAX_BUTTONS 128 +struct wine_input_absinfo { + LONG value; + LONG minimum; + LONG maximum; + LONG fuzz; + LONG flat; +}; + typedef struct EffectListItem EffectListItem; struct EffectListItem { @@ -150,7 +158,7 @@ struct JoyDev { BYTE ffbits[(FF_MAX+7)/8]; /* data returned by the EVIOCGABS() ioctl */ - struct input_absinfo axes[ABS_MAX]; + struct wine_input_absinfo axes[ABS_MAX]; }; struct JoystickImpl -- 2.32.0.93.g670b81a890