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:
Sascha Hlusiak
2007-04-16 23:01:31 -04:00
parent 8cafcf33ec
commit 44aafff9e9

View File

@@ -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;
}