mirror of
https://github.com/X11Libre/xf86-input-joystick.git
synced 2026-04-14 11:54:23 +00:00
Considering JS_EVENT_INIT events as real events again
We want to perform actions on JS_EVENT_INIT events, so we don't miss anything and follow the state of the device
This commit is contained in:
@@ -52,7 +52,8 @@
|
||||
*
|
||||
* jstkOpenDevice --
|
||||
*
|
||||
* Open and initialize a joystick device
|
||||
* Open and initialize a joystick device. The device name is
|
||||
* taken from JoystickDevPtr
|
||||
* Returns the filedescriptor, or -1 in case of error
|
||||
*
|
||||
***********************************************************************
|
||||
@@ -186,11 +187,5 @@ jstkReadData(JoystickDevPtr joystick,
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
/* If it is an JS_EVENT_INIT just save the state, but don't report
|
||||
as an event */
|
||||
if ((js.type & JS_EVENT_INIT) == JS_EVENT_INIT) {
|
||||
if (event != NULL) *event = EVENT_NONE;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user