From f92dfeae21b5608fdfad559d13aa14ea762176c9 Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Thu, 14 Jul 2022 17:05:57 +0200 Subject: [PATCH] Android: Leave the EV_MSC input handler alone. (#9335) It's used to communicate state changes from Android to Lua, we really really don't want to lose these ;). Fix #9326 --- frontend/device/input.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/device/input.lua b/frontend/device/input.lua index 67e758737..f6f04c094 100644 --- a/frontend/device/input.lua +++ b/frontend/device/input.lua @@ -1305,9 +1305,11 @@ function Input:inhibitInput(toggle) self.handleTouchEv = self.voidEv end if not self._msc_ev_handler then - if not self.device:isPocketBook() then + if not self.device:isPocketBook() and not self.device:isAndroid() then -- NOTE: PocketBook is a special snowflake, synthetic Power events are sent as EV_MSC. -- Thankfully, that's all that EV_MSC is used for on that platform. + -- NOTE: Android, on the other hand, handles a *lot* of critical stuff over EV_MSC, + -- as it's used to communicate between Android and Lua land ;). self._msc_ev_handler = self.handleMiscEv self.handleMiscEv = self.voidEv end