question

raymercb avatar image
raymercb asked

How to know the input device that was used to open my application?

Hello, I need to know how to get the input device that was used to open my application (in the onCreate method, for example) . A bit more specific, how to know if my app was opened with "Amazon Fire TV Remote Input" or "Amazon Fire Game Controller Input"?. Thanks!
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.

1 Answer

Sujoy@Amazon avatar image
Sujoy@Amazon answered
There is no direct way to know this. However, subsequent key presses will have the device id in the key event or motion event, enabling users to identify the input device (the user will most likely continue to the same input device used to open the app).
10 |5000

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