fire tv stick remote controls not working with RGEasyFTV.lua

Hi, i tried both of the examples  
 

from 

https://coronalabs.com/blog/2014/05/13/tutorial-amazon-fire-tv-controller-events/

on my fire tv stick and none of them works with my fire tv remote. the key events work in the simulator and i get the expected responses in the console. Did anyone succeed in using RGEasyFTV.lua this in his Fire TV apps for the Fire TV Stick Version? I build for amazon within corona and can install apps on the stick and they run fine. just the controls will not work at all. Tried both examples here. I am wondering what i do wrong or if i miss something. Did anybody get the controls working with RGEasyFTV.lua and could test on the real device? I just want to achive a one button control. using “select” or key code “23” works on simulator but no reaction on the real fire tv remote  when i build for amazon and install the apk on the stick.

Hi.  I’m afraid I’ve never tried this on the FireTV stick device.  You may want to ignore my library and simply write a small program to detect any and all ‘key’ events. Then print them to the screen.  This will act as a sanity check.  i.e. You’ll know if the button pushes on your device are getting detected.

https://docs.coronalabs.com/daily/api/event/key/index.html

This code should do the trick (modify to suit your tastes):

local keyName = display.newText( "keyName", 10, 20, native.systemFont, 24 ) keyName.anchorX = 0 local keyCode = display.newText( "keyCode", 10, 50, native.systemFont, 24 ) keyCode.anchorX = 0 local isCtrlDown = display.newText( "isCtrlDown", 10, 80, native.systemFont, 24 ) isCtrlDown.anchorX = 0 local isAltDown = display.newText( "isAltDown", 10, 110, native.systemFont, 24 ) isAltDown.anchorX = 0 local isShiftDown = display.newText( "isShiftDown", 10, 140, native.systemFont, 24 ) isShiftDown.anchorX = 0 local phase = display.newText( "phase", 10, 170, native.systemFont, 24 ) phase.anchorX = 0 local onKey = function( event ) keyName.text = " keyName: " .. tostring(event.keyName) keyCode.text = "keyCode: " .. tostring(event.nativeKeyCode) isCtrlDown.text = " isCtrlDown: " .. tostring(event.isCtrlDown) isAltDown.text = " isAltDown: " .. tostring(event.isAltDown) isShiftDown.text = "isShiftDown: " .. tostring(event.isShiftDown) phase.text = " phase: " .. tostring(event.phase) return false end timer.performWithDelay(100, function() Runtime:addEventListener( "key", onKey ) end )

Hi, the code works! Remote responds now. Thanks! corona forums rock  :)  

I’m very happy the code worked and you are back developing.

Cheers,

Ed

Hi.  I’m afraid I’ve never tried this on the FireTV stick device.  You may want to ignore my library and simply write a small program to detect any and all ‘key’ events. Then print them to the screen.  This will act as a sanity check.  i.e. You’ll know if the button pushes on your device are getting detected.

https://docs.coronalabs.com/daily/api/event/key/index.html

This code should do the trick (modify to suit your tastes):

local keyName = display.newText( "keyName", 10, 20, native.systemFont, 24 ) keyName.anchorX = 0 local keyCode = display.newText( "keyCode", 10, 50, native.systemFont, 24 ) keyCode.anchorX = 0 local isCtrlDown = display.newText( "isCtrlDown", 10, 80, native.systemFont, 24 ) isCtrlDown.anchorX = 0 local isAltDown = display.newText( "isAltDown", 10, 110, native.systemFont, 24 ) isAltDown.anchorX = 0 local isShiftDown = display.newText( "isShiftDown", 10, 140, native.systemFont, 24 ) isShiftDown.anchorX = 0 local phase = display.newText( "phase", 10, 170, native.systemFont, 24 ) phase.anchorX = 0 local onKey = function( event ) keyName.text = " keyName: " .. tostring(event.keyName) keyCode.text = "keyCode: " .. tostring(event.nativeKeyCode) isCtrlDown.text = " isCtrlDown: " .. tostring(event.isCtrlDown) isAltDown.text = " isAltDown: " .. tostring(event.isAltDown) isShiftDown.text = "isShiftDown: " .. tostring(event.isShiftDown) phase.text = " phase: " .. tostring(event.phase) return false end timer.performWithDelay(100, function() Runtime:addEventListener( "key", onKey ) end )

Hi, the code works! Remote responds now. Thanks! corona forums rock  :)  

I’m very happy the code worked and you are back developing.

Cheers,

Ed