question

Tony Anecito avatar image
Tony Anecito asked

Detecting arrow press on keyboard for android running on windows

Where can I find an example for android in Java for detecting the key up for the arrow keys on the PC keyboard (Not the DPAD0. The example given is for kotlin and the DPAD and does not show where the code is placed such as a selectlistener?

Thanks!

troubleshooting
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

Ross@Amazon avatar image
Ross@Amazon answered

Hi Tony Anecito,

Java examples for keyboard input controls can be found in the developer documentation.

https://developer.amazon.com/docs/appstore-on-windows/compatibility-guide.html#input-controls

10 |5000

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