mirror of
https://github.com/shadowfacts/jinput-arm64.git
synced 2026-01-23 17:10:41 +01:00
DirectInput: Use Controller.Type.UNKNOWN for the catch-all device type
This commit is contained in:
parent
b1892fe307
commit
924d55e7d3
|
|
@ -140,12 +140,14 @@ public final class DirectInputEnvironmentPlugin extends ControllerEnvironment im
|
|||
return createControllerFromDevice(device, Controller.Type.GAMEPAD);
|
||||
case IDirectInputDevice.DI8DEVTYPE_DRIVING:
|
||||
return createControllerFromDevice(device, Controller.Type.WHEEL);
|
||||
case IDirectInputDevice.DI8DEVTYPE_1STPERSON:
|
||||
/* Fall through */
|
||||
case IDirectInputDevice.DI8DEVTYPE_FLIGHT:
|
||||
/* Fall through */
|
||||
case IDirectInputDevice.DI8DEVTYPE_JOYSTICK:
|
||||
/* Fall through */
|
||||
default:
|
||||
return createControllerFromDevice(device, Controller.Type.STICK);
|
||||
default:
|
||||
return createControllerFromDevice(device, Controller.Type.UNKNOWN);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue