mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user