Module: wine Branch: master Commit: fc0298429a403e76eb6c9b6fb25b6556f08799aa URL: http://source.winehq.org/git/wine.git/?a=commit;h=fc0298429a403e76eb6c9b6fb2...
Author: Vitaliy Margolen wine-patches@kievinfo.com Date: Tue Aug 21 07:06:17 2007 -0600
dinput: Fix compile with old input.h that missing input_absinfo.
---
dlls/dinput/joystick_linuxinput.c | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/dlls/dinput/joystick_linuxinput.c b/dlls/dinput/joystick_linuxinput.c index c025219..37ae4a7 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