![]() |
#1 |
Enthusiast
![]() Posts: 46
Karma: 12
Join Date: Apr 2013
Device: Sony PRS T2
|
Buttons issue
Well I don't expect for many people to have messed around with this...
Touch HD 3 has a feature to pair with external buttons so you can turn page with bluetooth external keyboard/gamepad or what else it accepts to pair with. It's working nice with the stock reading software, but isn't with koreader. does anybody know how to make koreader to be aware of the emulated key presses?. Last edited by StephenQueen; 01-21-2022 at 08:54 AM. |
![]() |
![]() |
![]() |
#2 |
cosiñeiro
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,406
Karma: 2451781
Join Date: Apr 2014
Device: BQ Cervantes 4
|
You need to know which keycodes are being emited and create a custom keymap. See https://github.com/koreader/koreader/wiki/Keymapping
It should work with any bluetooth HID |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() Posts: 46
Karma: 12
Join Date: Apr 2013
Device: Sony PRS T2
|
Thank you for your tip, but for any reason It din't work.
If I understood correctly I had to create the file koreader/settings/event_map.lua containing the assignations to the keys... I've been playing with this, that was what I understood: Return { [1] = "LPgFwd", [272] = "LPgBack", } I tried too Return { [1] = "LPgFwd", [272] = "LPgBack", } And any combination of them, but did't work Thankyou anyway ![]() Last edited by StephenQueen; 01-22-2022 at 10:33 AM. |
![]() |
![]() |
![]() |
#4 |
Enthusiast
![]() Posts: 46
Karma: 12
Join Date: Apr 2013
Device: Sony PRS T2
|
Can anybody tell me how to turn on koreader verbose mode, to try to figure out what is happening?
|
![]() |
![]() |
![]() |
#5 |
Enthusiast
![]() Posts: 46
Karma: 12
Join Date: Apr 2013
Device: Sony PRS T2
|
Well after activating verbose mode I see that koreader is aware of the keypresses but it does nothing with them, so, I assume I'm doing bad the key assignation...
Code:
01/22/22-15:15:07 DEBUG AutoTurn: onInputEvent 01/22/22-15:15:07 DEBUG input event => type: 42 (nil), code: 272, value: 0, time: 1642860907.940239 01/22/22-15:15:07 DEBUG AutoStandby:onInputevent() instance= table: 0xa0263548 . . 01/22/22-15:15:08 DEBUG AutoTurn: onInputEvent 01/22/22-15:15:09 DEBUG input event => type: 40 (nil), code: 1, value: 0, time: 1642860909.112940 01/22/22-15:15:09 DEBUG AutoStandby:onInputevent() instance= table: 0xa0263548 Last edited by StephenQueen; 01-22-2022 at 10:44 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
cosiñeiro
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,406
Karma: 2451781
Join Date: Apr 2014
Device: BQ Cervantes 4
|
I'm afraid it is a bit more complex than that because Pocketbook. Needs tweaking in
registerEventAdjustHook ie: asign event.type to C.EV.KEY for given types. Then its a matter of adding keycodes to event_map The constants used by inkview are in https://github.com/koreader/koreader.../inkview_h.lua. Apparently 40 is EVT_TOUCHUP and 42 is EVT_TOUCHMOVE. That doesn't make much sense ![]() Anyhow: patches welcome. Don't expect the feature anytime soon unless a new maintainer appears in the wild and wants to tackle this. My bad for giving you hopes. I expected something trivial as in android. |
![]() |
![]() |
![]() |
#7 |
Enthusiast
![]() Posts: 46
Karma: 12
Join Date: Apr 2013
Device: Sony PRS T2
|
Bad luck
Anyway, thank you for your time ![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle 4 Cant reach certain buttons issue and opening keyboard issue | Thefirebeast | KOReader | 6 | 06-26-2021 12:46 AM |
issue converting from azw3 to mobi (ccs and font issue) | fatkinglet | Conversion | 3 | 10-15-2020 10:13 PM |
Nook Simple Touch Glowlight - technological issue or quality-control issue? | Dr. Drib | Barnes & Noble NOOK | 1 | 12-04-2012 01:32 PM |
PB360 Orientation Issue with Buttons | Japes | PocketBook | 8 | 06-04-2012 02:42 AM |
Buttons issue | PhishStyx | iRex | 23 | 03-28-2009 02:49 PM |