mirror of
https://github.com/shadowfacts/jinput-arm64.git
synced 2026-01-17 14:10:12 +01:00
Fixed a sigsegv, once we've found a match for an event device and
joystick, don't look at that stick again, especially having nulled the pointer.
This commit is contained in:
parent
c47f72208e
commit
552fdad56d
|
|
@ -95,6 +95,7 @@ JNIEXPORT jint JNICALL Java_net_java_games_input_JInputLibrary_nativeInit
|
|||
LOG_TRACE("Creating a mixed device with id %d, combining event device %d and joystick device %d\n", jinputNumDevices, i, j);
|
||||
jinputDeviceList[jinputNumDevices] = new MixedDevice(jsDevice, eventDevice);
|
||||
jsDevices[j] = NULL;
|
||||
j++;
|
||||
jinputNumDevices++;
|
||||
joystickPtr = j;
|
||||
j = numJoysticks;
|
||||
|
|
|
|||
Loading…
Reference in a new issue