PocketBook: Don't break synthetic power input events on suspend

Regression since #9036
Fix #9095
reviewable/pr9104/r1
NiLuJe 2 years ago committed by GitHub
parent 84dd58f9df
commit 118e063ae2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1292,8 +1292,12 @@ function Input:inhibitInput(toggle)
self.handleTouchEv = self.voidEv
end
if not self._msc_ev_handler then
self._msc_ev_handler = self.handleMiscEv
self.handleMiscEv = self.voidEv
if not self.device:isPocketBook() 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.
self._msc_ev_handler = self.handleMiscEv
self.handleMiscEv = self.voidEv
end
end
if not self._sdl_ev_handler then
self._sdl_ev_handler = self.handleSdlEv

Loading…
Cancel
Save