PB: Implement GSensor support for more moderm devices (#9873)

(Bumps base for https://github.com/koreader/koreader-base/pull/1566)
reviewable/pr9959/r1
Robert-Jan de Dreu 1 year ago committed by GitHub
parent a33617d760
commit c9df3a000f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1 +1 @@
Subproject commit 0d8f7076c9904d2894c03b0a1db7c3f5a92e3267
Subproject commit c3448b704dd858f8ea62f795182da52f5b9b6c63

@ -228,6 +228,11 @@ function PocketBook:init()
self.input:disableRotationMap()
end
-- If InkView tells us this device has a gsensor enable the event based functionality
if inkview.QueryGSensor() ~= 0 then
self.hasGSensor = yes
end
-- In contrast to kobo/kindle, pocketbook-devices do not use linux/input events directly.
-- To be able to use input.lua nevertheless,
-- we make inkview-events look like linux/input events or handle them directly here.

Loading…
Cancel
Save