Change to ignore non HID compliant devices and to correct a bug where usage page passed as element type

This commit is contained in:
gregorypierce 2003-08-09 18:18:43 +00:00
parent eade1ce044
commit 09ae0599ef

View file

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