Android: Remove controller-specific code that isn't needed anymore

This commit is contained in:
JosJuice 2018-07-11 09:40:23 +02:00
parent d32c297c0d
commit 78cb1c2914
1 changed files with 0 additions and 19 deletions

View File

@ -39,19 +39,6 @@ public class ControllerMappingHelper
{
return (value + 1) / 2.0f;
}
if (axis == MotionEvent.AXIS_GENERIC_1)
{
// This axis is stuck at ~.5. Ignore it.
return 0.0f;
}
}
else if (isMogaPro2Hid(inputDevice))
{
// This controller has a broken axis that reports a constant value. Ignore it.
if (axis == MotionEvent.AXIS_GENERIC_1)
{
return 0.0f;
}
}
return value;
}
@ -67,10 +54,4 @@ public class ControllerMappingHelper
// Microsoft Xbox One controller
return inputDevice.getVendorId() == 0x45e && inputDevice.getProductId() == 0x2e0;
}
private boolean isMogaPro2Hid(InputDevice inputDevice)
{
// Moga Pro 2 HID
return inputDevice.getVendorId() == 0x20d6 && inputDevice.getProductId() == 0x6271;
}
}