Sylvain MARLIERE
unread,Nov 25, 2008, 6:39:20 AM11/25/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-...@googlegroups.com
Hello Dan,
Did you tried this combination ?
It's likely to work.
event send
EV_ABS:ABS_X:100
EV_ABS:ABS_Y:100
EV_ABS:ABS_PRESSURE:1
EV_KEY:BTN_TOUCH:1
EV_SYN:SYN_REPORT:0
EV_ABS:ABS_X:100
EV_ABS:ABS_Y:100
EV_ABS:ABS_PRESSURE:0
EV_KEY:BTN_TOUCH:0
EV_SYN:SYN_REPORT:0
During a drag movement, (ABS_X,ABS_Y,ABS_PRESSURE) will be continously reported in a thread loop, but BTN_TOUCH will be only reported once at the beginning (=1) and once the end (=0) of the drag movement (when ABS_PRESSURE changes between zero or positive state).
event send (for starting to press at position 100,100)
EV_ABS:ABS_X:100
EV_ABS:ABS_Y:100
EV_ABS:ABS_PRESSURE:1
EV_KEY:BTN_TOUCH:1
EV_SYN:SYN_REPORT:0
event send (for drag movement from 100,100 to 104,104)
EV_ABS:ABS_X:100
EV_ABS:ABS_Y:100
EV_ABS:ABS_PRESSURE:1
EV_SYN:SYN_REPORT:0
EV_ABS:ABS_X:102
EV_ABS:ABS_Y:102
EV_ABS:ABS_PRESSURE:1
EV_SYN:SYN_REPORT:0
EV_ABS:ABS_X:104
EV_ABS:ABS_Y:104
EV_ABS:ABS_PRESSURE:1
EV_SYN:SYN_REPORT:0
event send (for stopping to press at position 104,104)
EV_ABS:ABS_X:104
EV_ABS:ABS_Y:104
EV_ABS:ABS_PRESSURE:0
EV_KEY:BTN_TOUCH:0
EV_SYN:SYN_REPORT:0
Hope this helps.
Regards,
Sylvain