Amazon FireTV Remote

Monkey Forums/Monkey Programming/Amazon FireTV Remote

benmc(Posted 2015) [#1]
Have had great success getting my Android games running on my FireTV with the exception of mapping the keys on the FireTV Remote.

I enable the Game Controller for Android in my project, but I am NOT using the FireTV Game Controller, just the remote.

The Directions buttons on the Remote for Up/Down/Left/Right work fine by using:

JoyDown(JOY_UP), etc

But I cannot for the life of me figure out how to reference the center Select button, the Play, Fast forward, and Rewind buttons.

Does anyone know how to get KeyDown or JoyDown to fire for any of those FireTV remote buttons???


benmc(Posted 2015) [#2]
Here was my work-around...

In androidgame.java I had to add:

case 23: button=12;break; //SELECT (268)
case 90: button=13;break; //FF (269)
case 89: button=14;break; //REWIND (270)
case 85: button=15;break; //PLAY/PAUSE (271)

under

dispatchKeyEventPreIme( KeyEvent event ){
if( _useGamepad ){
switch( event.getKeyCode() ){

Then I could test for KeyDown(268), KeyDown(269),KeyDown(270),KeyDown(271), for the Select through FF/Play/Rewind.

I'm not sure if this is the correct way to go about this, but it's working on my FireTV at the moment.


Why0Why(Posted 2015) [#3]
Thanks for sharing. I have been using my FireTV more and I may play with this some.