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

Summary: Android: Keyboards are being translated into multiple joystick devices.
Product: SDL Reporter: Anthony @ POW Games <ant>
Component: joystickAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.8   
Hardware: ARM   
OS: Android (All)   

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.