Quote:
Originally Posted by pickyaxe
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.