We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4145 - Android: Keyboards are being translated into multiple joystick devices.
Summary: Android: Keyboards are being translated into multiple joystick devices.
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: joystick (show other bugs)
Version: 2.0.8
Hardware: ARM Android (All)
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-21 15:10 UTC by Anthony @ POW Games
Modified: 2019-04-01 01:16 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony @ POW Games 2018-04-21 15:10:34 UTC
I have various wireless 2.4G keyboards. They work as expected in windows, but in Android they are being translated into various oddly named joystick devices. When opened, they block the arrow key events from the keyboard. One keyboard lists 3 different joystick devices under Android, despite not being a joystick. in Windows no joystick devices are listed. 

This has always been a problem, but at least now the keyboard arrow keys are being translated into DPAD directions, rather than lost in the void. But this is still not desired behaviour of a keyboard to be a joystick only under Android.

*might* be related to bug https://bugzilla.libsdl.org/show_bug.cgi?id=3958 ?
Comment 1 Anthony @ POW Games 2018-05-02 16:03:13 UTC
In addition to this bug, game controller buttons no longer work - there are no events when buttons are pressed. The HATs and axis work, but no buttons. Probably related.  This used to work back in 2.0.5 (I don't know in which version it was broken).
Comment 2 Anthony @ POW Games 2019-04-01 01:16:37 UTC
This no longer happens with the new hidapi stuff.