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.