openstf / minitouch

Minimal multitouch event producer for Android.
Other
633 stars 233 forks source link

wait in your own code #4

Closed likezjuisee closed 8 years ago

likezjuisee commented 8 years ago

What's the content in the <> means, could you give me some examples?

Long tap on (10, 10) with 50 pressure using a single contact.

d 0 10 10 50 c

u 0 c
sorccu commented 8 years ago

Something like sleep().

likezjuisee commented 8 years ago

Can minitouch in android phone recognize the sleep code?

sorccu commented 8 years ago

No! I don't know Python very well, but the idea is to do something like this:

client.sendall("d 0 150 150 50\n")
client.sendall("c\n")
sleep(2)
client.sendall("u 0\n")
client.sendall("c\n")