Commit Graph

53 Commits (bfff863861f98341ba34eabc049dba9ffa6c827e)

Author SHA1 Message Date
chrox d58ab4dece decrease HOLD_INTERVAL to 0.5s for better responsiveness 11 years ago
chrox 637904a711 add text highlight for credocument
Three highlight drawers "lighten", "underscore" and "invert" are
available in reader menu.
This should implement #176.
11 years ago
Giorgio Micotti 172241bc8e Fix corner case for Kobo Aura: tev.id == -1 with tev.x and tev.y values defined. 11 years ago
chrox e5de29bfbd remove redundant debug 11 years ago
chrox 4c5d1caa92 detect touch event for more responsive UI 11 years ago
Markismus a30de54511 Update gesturedetector.lua
Aligns DEBUG line 84 with the DEBUG lines in input.lua for easier visual checking.
11 years ago
Huang Xin c052655989 Merge pull request #397 from Markismus/MultitouchKoboAura
Two small changes to improve use for Kobo ereaders
11 years ago
Markismus 74e03bc615 Kobo Aura Hd and Mini users get the error message:
/luajit: ./frontend/ui/gesturedetector.lua:84: attempt to concatenate field 'y' (a nil value)

Hopefully the use of the "," in the DEBUG function instead of the string concatenate operator gets rid of it.
11 years ago
chrox 127e053d5b add PAN_THRESHOLD when detecting hold_pan gesture
This should fix #383.
11 years ago
Markismus 485ab8aa9d Signed-off-by: Markismus <zulde.zuldemans@gmail.com> 11 years ago
Markismus acf1525630 Signed-off-by: Markismus <zulde.zuldemans@gmail.com> 11 years ago
HW 11bb9009fa replace Screen.width/Screen.height with accessor methods
Screen.width and Screen.height are now gone, use the methods
getWidth() and getHeight() to get the relevant data. They will
take blitbuffer/framebuffer rotation into account.
11 years ago
chrox ae2462c17e relative x and y in pan gesture are relative to first touch events 11 years ago
HW 09cd5c4104 Make DEBUG a require()d local 11 years ago
HW ef111b99c6 Refactored to use strictly locals 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
Paulo Matias f0b352b0e3 Fix multiple crash bugs on GestureDector (with double-finger) and ReaderFrontLight (closes Issue #165) 11 years ago
chrox 7f1d682a98 adapt gesture detector for 90 degrees rotation 11 years ago
chrox 6687208525 add hold_release and hold_pan gestures 11 years ago
Qingping Hou b40be3d0f8 remove trailing white spaces 11 years ago
chrox 7fcc2e5972 fix DEBUG location in case ges_ev is nil 11 years ago
chrox d262ffecab fix direction rectification of pinch/spread gestures 11 years ago
chrox 15eccb4da7 add pinch, spread, rotate and inward/outward pan gestures 11 years ago
chrox 9ef581e69c add two_finger_pan_release gesture & some refactorings in tap state 11 years ago
chrox d713bf7732 add two finger swipe gesture 11 years ago
chrox 152782b412 add two_finger_pan gesture 11 years ago
Qingping Hou 10d980ed87 rearranged source tree 11 years ago
chrox 617613e763 bugfix: adjust coordinates of pan gesture 11 years ago
chrox da2a3ff753 detect pan release gesture 11 years ago
chrox 9e5a036c6e cleanup: remove unnecessary debug info 11 years ago
chrox 5c2d9bb1ad screenshot with finger touch at the two corners of the diagonal 11 years ago
chrox c3d7d2df47 add two-finger tap gesture 11 years ago
chrox fcfe82f4a5 add direction and distance in pan/swipe gesture 11 years ago
chrox 94a69b87a7 add gesture emitting rate in GestureRange 11 years ago
chrox 14bbcde422 add multiple slots in gesture detector
So that gesture detecting in one slot won't block gestures in the other slots.
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 712f964d43 fix whitespaces 11 years ago
Qingping Hou 331ec3a6ce fix: properly record last_tev in gesturedetector 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 ddc7d86efe change ev argument name to tev in gesturedetector.lua
So people won't messed it up with ev in inputevet.lua
12 years ago
Qingping Hou d4ff6f9291 first demo of screen rotate 12 years ago
Qingping Hou c5fc851bb7 bug fix for swipe gesture detection (nil x or y)
a complete_last_ev var is used to make sure the first argument
to isSwipe() method has no nil x or y entry.
12 years ago
Qingping Hou 0f51f34ff6 add swipe event detection in gesturedetector.lua 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
Qingping Hou c701248a8d rename Input:setTimeOut to Input:setTimtout
To keep consistent with Javascript setTimeout function...
12 years ago
Qingping Hou a7b2215249 bug fix in time.lua
a crazy typo
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 f06afb798e rewrite gesturedetector state machine 12 years ago