mirror of
https://github.com/koreader/koreader
synced 2024-11-10 01:10:34 +00:00
3066c86e38
This is a major overhaul of the hardware abstraction layer. A few notes: General platform distinction happens in frontend/device.lua which will delegate everything else to frontend/device/<platform_name>/device.lua which should extend frontend/device/generic/device.lua Screen handling is implemented in frontend/device/screen.lua which includes the *functionality* to support device specifics. Actually setting up the device specific functionality, however, is done in the device specific setup code in the relevant device.lua file. The same goes for input handling.
34 lines
1.2 KiB
Lua
34 lines
1.2 KiB
Lua
return {
|
|
[29] = "A", [30] = "B", [31] = "C", [32] = "D", [33] = "E", [34] = "F",
|
|
[35] = "G", [36] = "H", [37] = "I", [38] = "J", [39] = "K", [40] = "L",
|
|
[41] = "M", [42] = "N", [43] = "O", [44] = "P", [45] = "Q", [46] = "R",
|
|
[47] = "S", [48] = "T", [49] = "U", [50] = "V", [51] = "W", [52] = "X",
|
|
[53] = "Y", [54] = "Z", [ 7] = "0", [ 8] = "1", [ 9] = "2", [10] = "3",
|
|
[11] = "4", [12] = "5", [13] = "6", [14] = "7", [15] = "8", [16] = "9",
|
|
|
|
[4] = "Back", -- BACK
|
|
[19] = "Up", -- DPAD_UP
|
|
[20] = "Down", -- DPAD_UP
|
|
[21] = "Left", -- DPAD_LEFT
|
|
[22] = "Right", -- DPAD_RIGHT
|
|
[23] = "Press", -- DPAD_CENTER
|
|
[24] = "LPgBack", -- VOLUME_UP
|
|
[25] = "LPgFwd", -- VOLUME_DOWN
|
|
[56] = ".", -- PERIOD
|
|
[59] = "Shift", -- SHIFT_LEFT
|
|
[60] = "Shift", -- SHIFT_RIGHT
|
|
[62] = " ", -- SPACE
|
|
[63] = "Sym", -- SYM
|
|
[66] = "Enter", -- ENTER
|
|
[67] = "Del", -- DEL
|
|
[76] = "/", -- SLASH
|
|
[82] = "Menu", -- MENU
|
|
[84] = "Search",--SEARCH
|
|
[92] = "LPgBack", -- PAGE_UP
|
|
[93] = "LPgFwd", -- PAGE_DOWN
|
|
|
|
[104] = "LPgBack", -- T68 PageUp
|
|
[109] = "LPgFwd", -- T68 PageDown
|
|
[139] = "Menu", -- T68 Menu
|
|
}
|