Capture button presses on a Fire Tv remote


I made a simple platform game, and I installed the apk on a Fire Tv Stick.

The Fire Tv remote has a directional pad with up, down, left, right, and a center button.

And below that, 3 buttons that should be testable: Rew, Play, and FF

The directional keys are mapped properly and work.

The center button should just be Enter or keycode 13, but when I check for “Return” pressed, it doesn’t work.

The 3 other buttons are identified by as:

227 MediaRewind
179 MediaPlayPause
228 MediaFastForward

How can I check if these buttons are pressed?



After more testing, I’ve found that checking for “NumpadReturn” works for the Center button.

I really only need the MediaPlayPause for a pause button.

Perhaps a little snippet of Javascript could work?

It seems that something like this might work,

document.addEventListener("keyup", function(event) {
    if (event.keyCode === 179) {

But, I don’t know how to implement that in Gdevelop.

Any help, or even a poke in the right direction would be greatly appreciated.

1 Like

Please any help will be appreciated sir !! How can I use the center button on the fire tv remote. it should of worked as the A button but it doesn’t. The d-pad controls work fine when I test on the fire tv but the center button doesn’t work. please help I’m new to Gdevelop
thank you

Hi Tony,

The center button on the Fire Tv remote emulates the enter key. But for some reason, it’s not the regular Enter key, It’s the Enter key over by the Number Pad.

If you test for ‘NumpadReturn’ the Center button will work.