2
0
mirror of https://github.com/koreader/koreader synced 2024-11-16 06:12:56 +00:00
Commit Graph

44 Commits

Author SHA1 Message Date
Giorgio Micotti
103133d216 Fix some dumb mistakes, toggle light now works 2013-08-02 11:08:36 +02:00
chrox
fa9878301f disable double tap detection by default in gesture detector
since the gesture detector will block the main thread
(the only thread in the lua part) for 300 ms on each tap
waiting for the arrival of the second tap, it makes the whole
application less responsive. 300 ms of latency is well perceived
in this case. This patch will simply disable double tap detection by
default as no widget now handles double_tap gestures. We could
temporarily enable double tap detection when this gesture is indeed
needed after.
2013-07-31 19:35:47 +08:00
Giorgio Micotti
e4b8fc3266 NOT WORKING initial kobo light support. 2013-07-23 19:40:26 +02:00
Giorgio Micotti
6c9b76de4f Fix bug #144. 2013-07-10 21:16:49 +02:00
Giorgio Micotti
c91e3834bb Added detection of single kobo models. Also a script to launch koreader is included and the related Makefile changes. 2013-07-10 09:10:38 +02:00
Giorgio Micotti
fc2d607d78 Fixed Landscape input handling. 2013-06-13 11:32:49 +02:00
Giorgio Micotti
70178aaf57 Fixed coordinates swapping and gesture detection. 2013-06-13 10:31:57 +02:00
Qingping Hou
5c0dc66e11 add eventAdjustHook for kobo 2013-06-13 03:26:03 -04:00
Giorgio Micotti
eed989b349 Add support for Kobo runtime detection, and its single touch protocol. 2013-06-11 21:54:36 +02:00
Qingping Hou
fb16790958 add gettext to inputevent.lua 2013-04-08 14:45:04 +08:00
chrox
819467df0b bugfix: hack swipe to unlock after going out of screensaver
by feeding a fake tap at the bottom of the screen
2013-03-17 19:33:59 +08:00
Qingping Hou
bab5192a86 fix: add empty Input.modifiers for KT from eureka 2013-03-14 22:24:22 -04:00
Qingping Hou
20447e820b fix: properly initilize key_map for KT 2013-03-14 21:24:50 -04:00
Qingping Hou
10d980ed87 rearranged source tree 2013-03-13 01:18:53 +08:00
chrox
f5b89744c5 feed evs in all slots to state machine 2013-03-06 20:59:48 +08:00
Qingping Hou
d4e2cb708e record multiple slots for multi-touch input
for now, only slot 0 is parsed, the rest are ignored.
2013-02-27 16:04:28 +08:00
Qingping Hou
186712d401 add ev log in debug mode 2013-02-24 15:10:11 +08:00
Qingping Hou
a655219eba move adjustGesCoordinate from Screen to GestureDetector
also adjust swipe direction according to screen view mode
2013-02-19 11:13:24 +08:00
Qingping Hou
dd7e26a986 fix crash in goint into screen saver 2013-02-02 16:37:48 +08:00
Qingping Hou
d4ff6f9291 first demo of screen rotate 2013-02-02 14:36:29 +08:00
Qingping Hou
55b2813b32 move fake event handling to ui.lua
inputevent.lua now only forwards events
2013-01-10 14:18:33 +08:00
eureka
424776b564 fix bug in eventhook for KT
* no return
* it is value that should be changed
2012-12-11 13:14:41 +08:00
Qingping Hou
b253a774f6 added TODO in Input:init in case I forget it in the future 2012-12-10 21:05:35 -05:00
Qingping Hou
c8d43cd33c add Input:eventAdjustHook(ev)
so we can adjust input event for KT on the fly.
the touch input event coordinates in KT ranges from 0-4095
instead of the screen size.
2012-12-10 20:58:16 -05:00
eureka
bf86cf7a93 KT input device patch from eureka
* add KT detection
* remove unnacessary input device for KT
2012-12-10 18:52:22 -05:00
Qingping Hou
cc38d9e6fc add KT support 2012-12-08 01:06:47 -05:00
Qingping Hou
c701248a8d rename Input:setTimeOut to Input:setTimtout
To keep consistent with Javascript setTimeout function...
2012-11-25 15:57:29 +08:00
Qingping Hou
324f67412a fix bug in timer_callbacks scheduling & change variable name
watiEvent should stop checking timer_callbacks when execceds
wait timeout set by timeout_us.
2012-11-17 13:51:34 -05:00
Qingping Hou
d3e0424122 add setTimeOut method in inputevent.lua
adapt all the state machine to use setTimeOut. Now supported gestures
includes tap, double tap and hold.
2012-11-17 13:41:26 -05:00
Qingping Hou
a8e4c6ed73 add setTimeOut method in inputevet and use it in gesturedetector 2012-11-16 18:55:13 -05:00
Qingping Hou
032a71cbc4 bug fix in single tap detection 2012-11-11 14:30:35 +08:00
Qingping Hou
3486ae7e09 first demo of gesture parsing 2012-11-11 14:30:35 +08:00
Qingping Hou
e000bde0be remove old comment in inputevent init 2012-11-05 10:50:15 -05:00
Qingping Hou
03595f8701 use os.remove instead of calling "rm" in os.execute 2012-11-05 10:27:21 -05:00
Qingping Hou
c96fc292f9 adapt inputevent.lua to new emu input implementaion 2012-11-04 11:19:31 +08:00
Qingping Hou
e07c1d147f add multi-touch event definitions from linux/input.h 2012-10-21 01:25:48 +08:00
Qingping Hou
2985d27569 rewrite device detection 2012-10-14 14:22:01 +08:00
Qingping Hou
ca46092f1b fix naming for fake events device, part 2 2012-06-24 10:13:24 +08:00
Qingping Hou
271701edfe screensaver and usbplugin events support 2012-06-14 01:52:08 +08:00
Qingping Hou
2d104d7792 adjust keycodes for k4 & add device.lua 2012-06-13 21:27:38 +08:00
Qingping Hou
b71ac38d3b exit KPV on Ctrl+C 2012-06-12 21:18:39 +08:00
Qingping Hou
e4160a9909 fix table index in sequenceToString method 2012-06-04 10:38:52 +08:00
HW
60ccd7441e fixed menu info displaying, replaced debug() by DEBUG()
the replacement of debug() was necessary to be able to access the lua library "debug" (for backtraces etc.)
2012-05-28 18:59:16 +02:00
HW
9e531fc2db file reorganisation
all lua frontend files are now in the frontend/ directory.
all old code is cleaned up.
2012-05-19 01:10:57 +02:00