Opened 3 months ago

Closed 12 days ago

#15311 closed defect (fixed)

ANDROID: In-App keyboard not available when using bluetooth mouse

Reported by: OliKosch Owned by: lephilousophe
Priority: normal Component: Port: Android
Version: Keywords: usability, external hardware
Cc: Game:

Description

When using the app (tested with v2.8.0 and latest daily build) with a bluetooth mouse one can't enable the in-app
keyboard (e.g. to enter a savegame name). Tapping and holding the input selector does nothing. As soon as the bluetooth connection is disabled, the keyboard becomes selectable again.

Change History (4)

comment:1 by OliKosch, 3 months ago

Version: gsoc

comment:2 by antoniou79, 3 months ago

I see this too on my device (Android 12, microsoft bluetooth mouse (BLE 5)).

The issue here is that Android wrongly detects the bluetooth mouse as a Hardware Keyboard Input device. I don't know why this is (maybe it's a known bug for Android?).

Googling the issue online I get these results that seem to mention the same thing:
https://r1.community.samsung.com/t5/tablets/on-screen-keyboard-and-bluetooth-mouse/td-p/14665410

https://www.reddit.com/r/SamsungDex/comments/lutt3g/dexandroid_mouse_detected_as_keyboard_input/

https://www.quora.com/How-come-you-cant-use-your-on-screen-keyboard-and-mouse-at-the-same-time-on-Android-Is-there-a-way-to-get-the-on-screen-keyboard-to-pop-up-while-using-a-mouse-on-Android-11

So, then the ScummVM app, thinks that there's a hardware keyboard connected and it won't show the keyboard overlay. The issue of course is not restricted to the ScummVM app.

As of yet, I cannot think of a workaround for this.

The workaround mentioned in the linked google results will not work for ScummVM --it's only for the system's on-screen keyboard which the ScummVM does not use. But, furthermore, you wouldn't want the on-screen keyboard to appear if you actually had a physical keyboard connected as well.

I wonder if this has been submitted to Google as a proper bug ticket for Android.

Last edited 3 months ago by antoniou79 (previous) (diff)

comment:3 by tag2015, 5 weeks ago

Summary: In-App keyboard not available when using bluetooth mouseANDROID: In-App keyboard not available when using bluetooth mouse

comment:4 by lephilousophe, 12 days ago

Owner: set to lephilousophe
Resolution: fixed
Status: newclosed

I checked with my Logitech BT mouse.

The mouse advertises itself as a keyboard. That's why Android considers it like one.
There is a setting in the Hardware keyboard section which allows to keep displaying the IME when a hardware keyboard is present.
I pushed a fix in 72dcdcc9c646d9ab5a73e8d10db1d756d01599dd which considers this setting although it's not officially exposed.

In addition, now, the toggle button (long press on the input method icon) will forcibly display the keyboard.

Note: See TracTickets for help on using tickets.