mirror of
https://github.com/shadowfacts/jinput-arm64.git
synced 2026-01-07 17:29:56 +01:00
Change to ignore non HID compliant devices and to correct a bug where usage page passed as element type
This commit is contained in:
parent
eade1ce044
commit
09ae0599ef
|
|
@ -422,14 +422,17 @@ public class OSXEnvironmentPlugin extends ControllerEnvironment implements Plugi
|
|||
boolean hasPreferredState,
|
||||
boolean hasNullState)
|
||||
{
|
||||
InputControllerElement element = new InputControllerElement( elementCookie, usagePage, usage, usagePage,
|
||||
InputControllerElement element = new InputControllerElement( elementCookie, elementType, usage, usagePage,
|
||||
rawMin, rawMax, scaledMin, scaledMax,
|
||||
dataBitSize, isRelative, isWrapping, isNonLinear,
|
||||
hasPreferredState, hasNullState );
|
||||
|
||||
|
||||
InputController inputController = (InputController)devices.get( new Long( lpDevice) );
|
||||
inputController.addControllerElement( element );
|
||||
if ( inputController != null )
|
||||
{
|
||||
inputController.addControllerElement( element );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue