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
Paulo Matias
f0b352b0e3
Fix multiple crash bugs on GestureDector (with double-finger) and ReaderFrontLight (closes Issue #165 )
2013-07-22 09:23:58 -03:00
chrox
7f1d682a98
adapt gesture detector for 90 degrees rotation
2013-07-13 13:55:21 +08:00
chrox
6687208525
add hold_release and hold_pan gestures
2013-06-15 23:16:53 +08:00
Qingping Hou
b40be3d0f8
remove trailing white spaces
2013-04-08 14:40:12 +08:00
chrox
7fcc2e5972
fix DEBUG location in case ges_ev is nil
2013-03-28 22:05:17 +08:00
chrox
d262ffecab
fix direction rectification of pinch/spread gestures
2013-03-28 21:40:16 +08:00
chrox
15eccb4da7
add pinch, spread, rotate and inward/outward pan gestures
2013-03-28 21:06:13 +08:00
chrox
9ef581e69c
add two_finger_pan_release gesture & some refactorings in tap state
2013-03-26 20:59:47 +08:00
chrox
d713bf7732
add two finger swipe gesture
2013-03-26 13:17:03 +08:00
chrox
152782b412
add two_finger_pan gesture
2013-03-16 22:48:35 +08:00
Qingping Hou
10d980ed87
rearranged source tree
2013-03-13 01:18:53 +08:00
chrox
617613e763
bugfix: adjust coordinates of pan gesture
2013-03-12 11:27:41 +08:00
chrox
da2a3ff753
detect pan release gesture
2013-03-12 11:26:11 +08:00
chrox
9e5a036c6e
cleanup: remove unnecessary debug info
2013-03-10 13:20:25 +08:00
chrox
5c2d9bb1ad
screenshot with finger touch at the two corners of the diagonal
2013-03-06 22:36:51 +08:00
chrox
c3d7d2df47
add two-finger tap gesture
2013-03-06 21:04:33 +08:00
chrox
fcfe82f4a5
add direction and distance in pan/swipe gesture
2013-03-03 22:18:38 +08:00
chrox
94a69b87a7
add gesture emitting rate in GestureRange
2013-03-02 23:11:23 +08:00
chrox
14bbcde422
add multiple slots in gesture detector
...
So that gesture detecting in one slot won't block gestures in the other slots.
2013-03-02 22:21:18 +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
712f964d43
fix whitespaces
2013-02-25 23:32:46 -05:00
Qingping Hou
331ec3a6ce
fix: properly record last_tev in gesturedetector
2013-02-25 03:06:59 +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
ddc7d86efe
change ev argument name to tev in gesturedetector.lua
...
So people won't messed it up with ev in inputevet.lua
2013-02-06 13:39:06 +08:00
Qingping Hou
d4ff6f9291
first demo of screen rotate
2013-02-02 14:36:29 +08:00
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.
2012-12-30 01:01:44 -05:00
Qingping Hou
0f51f34ff6
add swipe event detection in gesturedetector.lua
2012-12-30 00:45:21 -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
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
a7b2215249
bug fix in time.lua
...
a crazy typo
2012-11-23 01:04:56 -05: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
f06afb798e
rewrite gesturedetector state machine
2012-11-15 19:58:01 -05:00
Qingping Hou
1fb10efc43
introduce state methods in gesturedetector
2012-11-13 01:12:01 -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