Discussion:
Sending events to the emulator
Sylvain MARLIERE
2008-11-25 11:39:20 UTC
Permalink
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

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Android Internals" group.
To post to this group, send email to android-***@googlegroups.com
To unsubscribe from this group, send email to android-internals+***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/android-internals?hl=en
-~----------~----~----~----~------~----~------~--~---

Loading...