question

bl-eng avatar image
bl-eng asked

onKeyDown isn't catching every KeyEvent

I'm trying to catch R2 and L2 from the Game Controller. I'm outputting the keyCode for every key that's pressed, but in the logs I'm not getting any onKeyDown events for those keys and a few others. Any advice? -Steve
fire tv
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

jhample avatar image
jhample answered
The triggers are an axis. Not a key press
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Amelia@Amazon avatar image
Amelia@Amazon answered
Hello bl_eng, This is by design. Please refer documentation on GameController Events https://developer.amazon.com/public/solutions/devices/fire-tv/docs/gamecontroller-api#GameController%20Event%20Constants
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.