View Single Post
Old 07-27-2022, 11:29 AM   #1250
elbioleg
Member
elbioleg began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jun 2012
Device: Kindle
Hi. First of all, thank you very much for this excellent tool!

I have successfully installed KOReader in a Kindle 4 NT (the black one with 4 buttons + a D-pad). Everything works just fine.

However, I miss the official behaviour of the D-Pad buttons (only) when reading:

right click --> move to the next chapter (a.k.a. next ToC entry), instead of turn one page.
left click --> move to the beginning of the chapter/move to the previous chapter (a.k.a. previous ToC entry), instead of turn one page back.
Up/down click --> browse over the page to highlight, dictionary search, etc.

Is it possible to configure the D-Pad like this? I have tried to figure it out by reading the wiki and searching this thread, but with no success. Maybe editing the file called event_map.lua?

In that case, could someone please help me? I am not familiar with these files --> I don't know what number ([102]) corresponds to what button in my device, nor what string ("Home") should I write for "avance one chapter", for instance.

Spoiler:
--[[
event map for Kindle devices on FW 3.x & 4.x
--]]

return {
[16] = "Q", [17] = "W", [18] = "E", [19] = "R", [20] = "T", [21] = "Y", [22] = "U", [23] = "I", [24] = "O", [25] = "P",
[30] = "A", [31] = "S", [32] = "D", [33] = "F", [34] = "G", [35] = "H", [36] = "J", [37] = "K", [38] = "L", [14] = "Del",
[44] = "Z", [45] = "X", [46] = "C", [47] = "V", [48] = "B", [49] = "N", [50] = "M", [52] = ".",

[28] = "Press", -- K3 (Enter)
[29] = "ScreenKB", -- K4
[42] = "Shift", -- K3
[56] = "Alt", -- K3
[57] = " ", -- K3
[102] = "Home",
[103] = "Up",
[104] = "LPgFwd",
[105] = "Left",
[106] = "Right",
[108] = "Down",
[109] = "RPgBack",
[126] = "Sym", -- K3
[139] = "Menu",
[158] = "Back",
[190] = "AA", -- K3
[191] = "RPgFwd",
[193] = "LPgBack",
[194] = "Press",
}


Or maybe this is easier and I missed the option... or maybe it is not possible and I am wasting my time

Thank you very much in advance!
elbioleg is offline   Reply With Quote