JagandeepBrar / lunasea

Self-hosted software controller built using Flutter
https://www.lunasea.app
GNU General Public License v3.0
1.28k stars 64 forks source link

Physical keyboard comes only with the space key into the respective areas #735

Open sorryusernameisalreadytaken opened 1 year ago

sorryusernameisalreadytaken commented 1 year ago

Describe the Bug I noticed that when connected physical keyboard, in the android apk only comes into the respective areas with the space key. I would have expected center or enter.

The same happens when you try the following keyevents via adb: ''' input keyevent 23 input keyevent 66 ''' Only this one works: ''' input keyevent 62 '''

To Reproduce Connect a USB Keyboard (perhaps you need a otg-adapter or usb-c to usb-a) to your Android device. Open LunaSea and try to enter a any dialog/options with the enter button.

Expected Behaviour Enter the area with pressed enter key on keyboard.

Versions Android apk v10.2.2

Additional context I have the same problem with center button. I think it would be good when center (normally the middle of a dpad bluetooth remote) and enter can enter into a dialog/options. Solving this problem has been extremely helpful for me to sideload and use the apk on androidTV as well.