View Single Post
Old 01-11-2020, 09:16 AM   #427
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,805
Karma: 7423683
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by pickyaxe View Post
Going to post this in this thread, hopefully it's okay.

I'd like to make some sort of daemon on top of Nickel, that listens in the background and makes Forma's up/down buttons scroll up/down in the built-in Web Browser. Where would I start with doing something like this? In particular, detecting when a button is pressed and detecting if the browser is currently running. Is there another tweak I could look at that did something similar?

Any help is welcome.
I would probably start with adapting FBInk's button_scan. First, you should work on sending drag events (although I'd first see if you can emulate them by sending key up/down/pgup/pgdown events). Then, I'd adapt button_scan to scan for the bottom toolbar of then browser, mainly the zoom bar (note that the length will be different on different devices or if you have pocket enabled. From there, you would want to patch or write a mod to prevent Kobo from seeing input events from the buttons in the web browser. Then, you can put everything together.

If you're planning on having a longer discussion on this, it would be a good idea to put it in it's own thread so posts don't get lost.
geek1011 is offline   Reply With Quote