summaryrefslogtreecommitdiff
path: root/Source/Android/app/src/main/java
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2018-07-11 09:40:23 +0200
committerJosJuice <josjuice@gmail.com>2018-07-11 14:00:37 +0200
commit78cb1c29141cd6925a08f3ff88885312c83b7a87 (patch)
treefe924374effa67e0fbe4b4794f6fd5d7db4da5b3 /Source/Android/app/src/main/java
parentd32c297c0d43ae87cf2cfdbf62e8aa5723656170 (diff)
Android: Remove controller-specific code that isn't needed anymore
Diffstat (limited to 'Source/Android/app/src/main/java')
-rw-r--r--Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/ControllerMappingHelper.java19
1 files changed, 0 insertions, 19 deletions
diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/ControllerMappingHelper.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/ControllerMappingHelper.java
index 69edc7a448..b44fa8cbe4 100644
--- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/ControllerMappingHelper.java
+++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/ControllerMappingHelper.java
@@ -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;
- }
}