Change: Remove unnecessary assignments from OS-X HID driver

This commit is contained in:
Christopher Lees 2017-07-13 18:47:06 +01:00
parent d0880ab1e6
commit 77bbb99f72

View file

@ -874,7 +874,7 @@ namespace OpenTK.Platform.MacOS
case HIDUsageSim.Rudder:
case HIDUsageSim.Throttle:
short offset = GetJoystickAxis(val, elem);
int axis = 0 + joy.Elements[cookie].Index;
int axis = joy.Elements[cookie].Index;
if (axis >= 0 && axis <= 64)
{
joy.State.SetAxis(axis, offset);