View Single Post
Old 10-04-2016, 05:18 PM   #112
zxczxc
Addict
zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.
 
Posts: 229
Karma: 136002
Join Date: Apr 2013
Device: PW
Quote:
Originally Posted by jscris View Post
Thanks! Now I understand. It's not important enough for you to spend time on it now, but thank you so much for the offer! The one more thing I would love is for page turns to work with koreader, but I understand that may not be going to happen. I am extremely happy with it as it is.
The reason why page turns work but brightness doesn't is because the controller we have is weird...
When plugged in, it appears to the computer as I think 4 separate devices... strange!
The volume buttons (that we use in KL for brightness) are on a separate 'device' to the page turning buttons.

Kindle paperwhite's input devices are:
input0 - this is only the power button.
input1 - this is the touch screen.
that's it. when we plug my usb controller and start KindleLazy we see...
input2 - this contains keys like pageup/page down, that we use to turn pages.
input3 - the volume keys happen to be here.

So I made KindleLazy read from input2 and input3, to get all the buttons I wanted. A different, similar presentator may appear just as 1 device, and so all keys might be on input2 - no problem.

On your Kindle Voyage you have:
input0 - power button
input1 - touch screen
input2 - the real PAGE TURN BUTTONS, paperwhite doesn't have this.
then when you insert the usb and start KL...
input3 - controller buttons containing pageup/down
input4 - controller buttons containing volume

BUT KindleLazy only reads from input2 and 3... not input4 where the part of the controller appears as on Voyage.
So the 'input' the volume button commands are coming from is being ignored... thus no brightness control!

That's the full explanation


Ideally I would like to be able to simply 'detect' what inputs the usb device is, and read them. But it's easier said than done. Hardcoding it to input2 and input3 was so easy, but as you can see, ugly and doesn't work in all cases.



And yeah, lucida - who showed how to make it work with koreader, I tried but for me it didn't work. When I next work on KL I'll try again, maybe it was a silly mistake of mine. I'm a bit tired of kindle at the moment so it will be a few days at least
zxczxc is offline   Reply With Quote