View Single Post
Old 08-18-2024, 05:03 PM   #11
lumping-sugar66
Zealot
lumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trolls
 
lumping-sugar66's Avatar
 
Posts: 100
Karma: 81981
Join Date: Oct 2023
Location: Ontario, Canada
Device: Kobo Aura Edition 2, Kobo Clara 2E
No, I suggested a correction for this:
Quote:
Originally Posted by trence View Post
So I changed the event_map lua to reflect [4] = "RPgFwd".
Those BTN enums correspond to integers in linux input event lists. You mentioned that page turner works with tsowell's plugin and the shared the configuration file. That tells me that your device is issuing BTN_GAMEPAD, BTN_NORTH, BTN_EAST, BTN_WEST events.

Their integer equivalents are 304, 305, 307, 308. (You can literally change the words in the config file to these values and it will work.) For me the event is KEY_VOLUMEUP, so an example for me is as follows.

The following instructions are identical:
Code:
nextPage EV_KEY KEY_VOLUMEUP 0
nextPage EV_KEY 115 0
Anyway, coming back to this plugin, instead of
Code:
[4] =  "RPgFwd
the following block would give you the identical button configuration with your nickel-based implementation, mapping all buttons to next page.

Code:
[304] =  "RPgFwd",
[305] =  "RPgFwd",
[307] =  "RPgFwd",
[308] =  "RPgFwd",
lumping-sugar66 is offline   Reply With Quote