mirror of
https://github.com/izzy2lost/PSX2.git
synced 2026-07-05 15:18:36 -07:00
fixed dpad on physical controllers now works
This commit is contained in:
@@ -1235,6 +1235,15 @@ public class MainActivity extends AppCompatActivity implements GamesCoverDialogF
|
||||
return super.onGenericMotionEvent(event);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean dispatchKeyEvent(KeyEvent event) {
|
||||
// Intercept controller DPAD/gamepad keys before focused views consume them
|
||||
if (mControllerInputHandler != null && mControllerInputHandler.handleKeyEvent(event)) {
|
||||
return true;
|
||||
}
|
||||
return super.dispatchKeyEvent(event);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onKeyDown(int p_keyCode, KeyEvent p_event) {
|
||||
// Use only our controller handler - disable SDL fallback to avoid conflicts
|
||||
|
||||
Reference in New Issue
Block a user