android - fix stick showing as dpad

This commit is contained in:
Emmanuel Hansen 2023-12-24 20:40:12 +00:00
parent 64b21a4578
commit ace210a187

View File

@ -8,7 +8,7 @@ class PhysicalControllerManager(val activity: MainActivity) {
private var ryujinxNative: RyujinxNative = RyujinxNative.instance
fun onKeyEvent(event: KeyEvent) : Boolean{
if(controllerId != -1) {
if(controllerId != -1 && (event.flags and KeyEvent.FLAG_FALLBACK) == 0) {
val id = getGamePadButtonInputId(event.keyCode)
if(id != GamePadButtonInputId.None) {