Skip to content

Commit

Permalink
Update dpad on controller for Android TV
Browse files Browse the repository at this point in the history
DPad controller did not work on Android TV using official gamepad -
fixed!
  • Loading branch information
AnthonyBall1966 committed Aug 10, 2015
1 parent a405c6d commit f3c5026
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -196,7 +196,11 @@ else if(checkName("Amazon", event.getDevice()))
else
{
controller.handleLeftTrigger(event.getAxisValue(MotionEvent.AXIS_LTRIGGER));
controller.handleRightTrigger(event.getAxisValue(MotionEvent.AXIS_RTRIGGER));
controller.handleRightTrigger(event.getAxisValue(MotionEvent.AXIS_RTRIGGER));
controller.handleDPadUpButton(event.getAxisValue(MotionEvent.AXIS_HAT_Y));
controller.handleDPadDownButton(event.getAxisValue(MotionEvent.AXIS_HAT_Y));
controller.handleDPadLeftButton(event.getAxisValue(MotionEvent.AXIS_HAT_X));
controller.handleDPadRightButton(event.getAxisValue(MotionEvent.AXIS_HAT_X));
}
}
return true;
Expand Down

0 comments on commit f3c5026

Please sign in to comment.