Skip to content

Commit

Permalink
pocketbook: support "extended" key events
Browse files Browse the repository at this point in the history
Only for device running with SDK >= 6.
  • Loading branch information
benoit-pierre committed Nov 4, 2024
1 parent c2d1099 commit 926ae76
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions frontend/device/pocketbook/device.lua
Original file line number Diff line number Diff line change
Expand Up @@ -189,15 +189,15 @@ function PocketBook:init()
device = self,
raw_input = raw_input,
event_map = setmetatable({
[C.KEY_HOME] = "Home",
[C.KEY_MENU] = "Menu",
[C.KEY_PREV] = "LPgBack",
[C.KEY_NEXT] = "LPgFwd",
[C.KEY_UP] = "Up",
[C.KEY_DOWN] = "Down",
[C.KEY_LEFT] = "Left",
[C.KEY_RIGHT] = "Right",
[C.KEY_OK] = "Press",
[-C.IV_KEY_HOME] = "Home",
[-C.IV_KEY_MENU] = "Menu",
[-C.IV_KEY_PREV] = "LPgBack",
[-C.IV_KEY_NEXT] = "LPgFwd",
[-C.IV_KEY_UP] = "Up",
[-C.IV_KEY_DOWN] = "Down",
[-C.IV_KEY_LEFT] = "Left",
[-C.IV_KEY_RIGHT] = "Right",
[-C.IV_KEY_OK] = "Press",
}, {__index=raw_input and raw_input.keymap or {}}),
handleMiscEv = function(this, ev)
local ui = require("ui/uimanager")
Expand Down

0 comments on commit 926ae76

Please sign in to comment.