View Single Post
Old 06-02-2013, 03:56 PM   #99
xor_
Zealot
xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.
 
Posts: 101
Karma: 470830
Join Date: Nov 2012
Location: Berlin
Device: Kobo Libra 2
I'm getting close to having the current UI code of Koreader working on my Glo. But there's still something I'm missing.

On the Lua side, the modified files are device.lua and inputevent.lua.
The problem seems to lie in inputevent.lua, since the same device.lua works with the older, KPV-based interface code (included for reference as inputevent-ok.lua and gesturedetector-ok.lua).

When I make the obvious, KPV-based GLO changes to inputevent.lua, the device seems to get stuck in the first gesture without ever updating the screen.

If I add some code to handle ABS_MT_PRESSURE (which actually has been dropped in the more recent UI code), I get the device to respond to gestures, and to update the screen. But it somehow over-responds: a single tap makes it turn several pages, and a swipe even more. It still seems to miss the correct end of a gesture.

I've tried to play with the timing values in gesturedetector.lua, but to no avail.

There's probably just something small I'm missing, but as of right now, I'm missing it.


(If you want to compile the binaries, I've added the changed files relative to github in the src - subdirectory. They're identical to Giorgio's changes for KPV).

////
Note: If you can't read code, you can safely skip this one. In terms of practical usage, what I posted in 73 is still the best we have. This is targeted to people who understand Koreader / the Linux input system a bit better than I do.

We're close, and this is turning out to be a very nice program. Let's get this working.
Attached Files
File Type: zip koreader-koboglo-test.zip (9.80 MB, 298 views)

Last edited by xor_; 06-02-2013 at 03:58 PM.
xor_ is offline   Reply With Quote