mirror of
https://github.com/koreader/koreader
synced 2024-10-31 21:20:20 +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 {
|
|
[ 4] = "A", [ 5] = "B", [ 6] = "C", [ 7] = "D", [ 8] = "E", [ 9] = "F",
|
|
[10] = "G", [11] = "H", [12] = "I", [13] = "J", [14] = "K", [15] = "L",
|
|
[16] = "M", [17] = "N", [18] = "O", [19] = "P", [20] = "Q", [21] = "R",
|
|
[22] = "S", [23] = "T", [24] = "U", [25] = "V", [26] = "W", [27] = "X",
|
|
[28] = "Y", [29] = "Z", [30] = "1", [31] = "2", [32] = "3", [33] = "4",
|
|
[34] = "5", [35] = "6", [36] = "7", [37] = "8", [38] = "9", [39] = "0",
|
|
|
|
[42] = "Back", -- Backspace
|
|
[40] = "Enter", -- Enter
|
|
[225] = "Shift", -- left shift
|
|
[55] = ".",
|
|
[56] = "/",
|
|
[229] = "Sym", -- right shift key
|
|
[226] = "Alt", -- left alt
|
|
[44] = " ", -- Spacebar
|
|
[58] = "Menu", -- F[1]
|
|
[59] = "Power", -- F[2]
|
|
[63] = "LPgBack", -- F[6]
|
|
[64] = "LPgFwd", -- F[7]
|
|
[68] = "VPlus", -- F[11]
|
|
[69] = "VMinus", -- F[12]
|
|
[230] = "AA", -- right alt key
|
|
[74] = "Home", -- Home
|
|
[82] = "Up", -- arrow up
|
|
[75] = "RPgBack", -- normal PageUp
|
|
[80] = "Left", -- arrow left
|
|
[79] = "Right", -- arrow right
|
|
[77] = "Press", -- End (above arrows)
|
|
[81] = "Down", -- arrow down
|
|
[78] = "RPgFwd", -- normal PageDown
|
|
[76] = "Del", -- Delete
|
|
}
|