thestr4ng3r / chiaki

Moved to https://git.sr.ht/~thestr4ng3r/chiaki - Free and Open Source PS4 Remote Play Client
https://git.sr.ht/~thestr4ng3r/chiaki
2.18k stars 370 forks source link

[ANDROID] D-pad only reads from HAT_X and HAT_Y and will not recognize DPAD_ inputs #314

Open tomatosoupcan opened 3 years ago

tomatosoupcan commented 3 years ago

What platform does your feature request apply to? Android

Is your feature request related to a problem? Please describe. Yes, for the time being I've remapped my right stick to be a hat as the game I am playing does not use the right stick, however long term not a tenable solution.

Describe the solution you'd like Modify the Android version to consider both HAT inputs and DPAD inputs when looking for input from the D-pad or allow users to rebind keys on Android.

Describe alternatives you've considered Only alternative I've considered is what I'm doing now, and it's less than ideal. This is a system with controls and no touchscreen, so on-screen keys are a real pain to use, I'm sure that's not a completely uncommon situation.

Additional context In terms of Android keylayout files, the mapping HAT_X and HATY will work when bound to an axis, however any DPAD controls don't work. It's also seemingly not possible to bind individual keys to HAT directions in Android. I believe the setup of DPAD_ controls for the D-pad is standard for PS3 controllers connected to Android, users shouldn't be expected to root and modify their files to get working controls imo.

tomatosoupcan commented 3 years ago

I see that the d-pad controls are commented out in the code, is it possible maybe to set this to a toggleable option?