Skip to content
Permalink
Browse files
front: Ignore spurious axis in Amazon Fire controller.
  • Loading branch information
littleguy77 committed Jan 19, 2015
1 parent 8c69c17 commit 4cc1cb8edf0423d81990db24d5199a3a561de6ab
Showing 1 changed file with 7 additions and 0 deletions.
@@ -26,6 +26,7 @@ public class AxisMap extends SerializableMap
private static final int SIGNATURE_HASH_LOGITECH_WINGMAN_RUMBLEPAD = 1247256123;
private static final int SIGNATURE_HASH_MOGA_PRO = -1933523749;
private static final int SIGNATURE_HASH_OUYA = 699487739;
private static final int SIGNATURE_HASH_AMAZON_FIRE = 2050752785;

private static final SparseArray<AxisMap> sAllMaps = new SparseArray<AxisMap>();
private final String mSignature;
@@ -133,6 +134,12 @@ public AxisMap( InputDevice device )
setClass( MotionEvent.AXIS_GENERIC_4, AXIS_CLASS_IGNORED );
signatureName = "OUYA controller";
break;

case SIGNATURE_HASH_AMAZON_FIRE:
// Ignore floating generic axis
setClass( MotionEvent.AXIS_GENERIC_1, AXIS_CLASS_IGNORED );
signatureName = "Amazon Fire Game Controller";
break;
}

// Check if the controller is an N64/USB adapter, to compensate for range of motion

0 comments on commit 4cc1cb8

Please sign in to comment.