Files
DroidDeck/app
MaxsTechReview 02a5be62da fix(input): a controller that disconnects mid-event no longer closes the app (#2369)
* fix(input): a controller that disconnects mid-event no longer closes the app

KeyEvent.getDevice() looks the device up on every call, so a controller removed while its event was handled made a later lookup return null and crashed in noteDevice. Look the device up once per event and ignore events whose device is gone.

* fix(input): retain controller layout during disconnect

* fix(input): look up the controller once per key and motion event
2026-11-11 21:57:56 -05:00
..