add custom mapping for tolino buttons (#9509)

reviewable/pr9528/r1
hasezoey 2 years ago committed by GitHub
parent 2fe2515ace
commit 61415a3723
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -131,9 +131,18 @@ local Device = Generic:new{
function Device:init()
self.screen = require("ffi/framebuffer_android"):new{device = self, debug = logger.dbg}
self.powerd = require("device/android/powerd"):new{device = self}
local event_map = require("device/android/event_map")
if android.prop.is_tolino then
-- dpad left/right as page back/forward
event_map[21] = "LPgBack"
event_map[22] = "LPgFwd"
end
self.input = require("device/input"):new{
device = self,
event_map = require("device/android/event_map"),
event_map = event_map,
handleMiscEv = function(this, ev)
local Event = require("ui/event")
local UIManager = require("ui/uimanager")

@ -1 +1 @@
Subproject commit 503e295cfc4e73edbc56463888dd4f27e8c73b6f
Subproject commit a3540de98b947c19733f18dda4211a031b1b03b4
Loading…
Cancel
Save