Commit Graph

55 Commits (ec3d23ef10ea1cd77b3e9a357bd2169711322622)

Author SHA1 Message Date
Giorgio Micotti ec3d23ef10 Split suspend-resume logic 11 years ago
Giorgio Micotti be1a637c3b DO NOT MERGE initial suspend support for Kobo 11 years ago
Giorgio Micotti 45cc6492ab Solve bug #210. 11 years ago
Paulo Matias d7b747d6dd Change util.isEmulated to boolean and fix frontlight
Device:hasFrontlight always returned a true-like value because util.isEmulated was an integer.
Fixed this, also, used a polymorphic object design to reduce FrontLight code, and
adapted BaseFrontLight for the emulator.
11 years ago
Paulo Matias e45442c1f6 Refactor Kobo frontlight_intensity restoration: move to reader.lua 11 years ago
Paulo Matias f68edd97ba Merge branch 'master' into frontlight3 11 years ago
Paulo Matias 44258d4ba6 Force initialization of FrontLight in Input:init() to avoid glitches in Kobo 11 years ago
Paulo Matias 3f3fba2fdf Big refactoring: Device handles frontlight device, ReaderFrontLight now only GUI 11 years ago
Paulo Matias 232d8cd74a Fix multiple ReaderFrontLight instances, i18n issues, and refactor event handling to follow codebase patterns 11 years ago
Qingping Hou 82e4863827 move emu_event to /tmp
because virtualbox cannot create fifo file in shared folders
11 years ago
Giorgio Micotti a145ee19aa Add firmware detection for kobo, adjust input accordingly. 11 years ago
Giorgio Micotti 103133d216 Fix some dumb mistakes, toggle light now works 11 years ago
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.
11 years ago
Giorgio Micotti e4b8fc3266 NOT WORKING initial kobo light support. 11 years ago
Giorgio Micotti 6c9b76de4f Fix bug #144. 11 years ago
Giorgio Micotti c91e3834bb Added detection of single kobo models. Also a script to launch koreader is included and the related Makefile changes. 11 years ago
Giorgio Micotti fc2d607d78 Fixed Landscape input handling. 11 years ago
Giorgio Micotti 70178aaf57 Fixed coordinates swapping and gesture detection. 11 years ago
Qingping Hou 5c0dc66e11 add eventAdjustHook for kobo 11 years ago
Giorgio Micotti eed989b349 Add support for Kobo runtime detection, and its single touch protocol. 11 years ago
Qingping Hou fb16790958 add gettext to inputevent.lua 11 years ago
chrox 819467df0b bugfix: hack swipe to unlock after going out of screensaver
by feeding a fake tap at the bottom of the screen
11 years ago
Qingping Hou bab5192a86 fix: add empty Input.modifiers for KT from eureka 11 years ago
Qingping Hou 20447e820b fix: properly initilize key_map for KT 11 years ago
Qingping Hou 10d980ed87 rearranged source tree 11 years ago
chrox f5b89744c5 feed evs in all slots to state machine 11 years ago
Qingping Hou d4e2cb708e record multiple slots for multi-touch input
for now, only slot 0 is parsed, the rest are ignored.
11 years ago
Qingping Hou 186712d401 add ev log in debug mode 11 years ago
Qingping Hou a655219eba move adjustGesCoordinate from Screen to GestureDetector
also adjust swipe direction according to screen view mode
11 years ago
Qingping Hou dd7e26a986 fix crash in goint into screen saver 12 years ago
Qingping Hou d4ff6f9291 first demo of screen rotate 12 years ago
Qingping Hou 55b2813b32 move fake event handling to ui.lua
inputevent.lua now only forwards events
12 years ago
eureka 424776b564 fix bug in eventhook for KT
* no return
* it is value that should be changed
12 years ago
Qingping Hou b253a774f6 added TODO in Input:init in case I forget it in the future 12 years ago
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.
12 years ago
eureka bf86cf7a93 KT input device patch from eureka
* add KT detection
* remove unnacessary input device for KT
12 years ago
Qingping Hou cc38d9e6fc add KT support 12 years ago
Qingping Hou c701248a8d rename Input:setTimeOut to Input:setTimtout
To keep consistent with Javascript setTimeout function...
12 years ago
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.
12 years ago
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.
12 years ago
Qingping Hou a8e4c6ed73 add setTimeOut method in inputevet and use it in gesturedetector 12 years ago
Qingping Hou 032a71cbc4 bug fix in single tap detection 12 years ago
Qingping Hou 3486ae7e09 first demo of gesture parsing 12 years ago
Qingping Hou e000bde0be remove old comment in inputevent init 12 years ago
Qingping Hou 03595f8701 use os.remove instead of calling "rm" in os.execute 12 years ago
Qingping Hou c96fc292f9 adapt inputevent.lua to new emu input implementaion 12 years ago
Qingping Hou e07c1d147f add multi-touch event definitions from linux/input.h 12 years ago
Qingping Hou 2985d27569 rewrite device detection 12 years ago
Qingping Hou ca46092f1b fix naming for fake events device, part 2 12 years ago
Qingping Hou 271701edfe screensaver and usbplugin events support 12 years ago