View Single Post
Old 07-19-2024, 02:49 PM   #4
kdusr
Connoisseur
kdusr began at the beginning.
 
kdusr's Avatar
 
Posts: 85
Karma: 13
Join Date: Oct 2016
Location: Mars
Device: KV,KOA2,PW5
Quote:
Originally Posted by j.p.s View Post
Here is what I was able to figure out in 2018, but from wanting to turn page parspective:
https://www.mobileread.com/forums/sh...d.php?t=294071
Basically it involved changing /dev/input/event5 so detecting a page turn would involve detecting particular changes in /dev/input/event5
Thanks, J.P.S
I read the thread,maybe I did not descript it clearly
My idea is: 1. user press the physical button > 2. trigger kindle gpio-key event > 3. in my app capture the gpio-key event > 4. execute page-up or page-down inside of my tk UI app (not execute page-up or page-down for kindle book UI).

when user press the physical button, kindle system automatically trigger a gpio-key event in global, this event is made by kindle system, nothing I can change, currently I stuck on step 3, my python script is unable to capture the gpio-key event, the step 4 to exec page-down is relatively easy in python Tk: tk.xxx_widget.event_generate('<Next>')

Last edited by kdusr; 07-19-2024 at 09:53 PM.
kdusr is offline   Reply With Quote