How do i generate a double tap event on Android.
This is the implementation that i have done.
$event="/dev/event/event1"
$x=$1
$y=$2
sendevent $event 3 57 2421
sendevent $event 3 58 232
sendevent $event 3 53 $x
sendevent $event 3 54 $y
sendevent $event 0 0 0
sendevent $event 3 57 4294967295
sendevent $event 0 0 0
sendevent $event 3 57 2421
sendevent $event 3 58 232
sendevent $event 3 53 $x
sendevent $event 3 54 $y
sendevent $event 0 0 0
sendevent $event 3 57 4294967295
sendevent $event 0 0 0
With this implementation the double tap is slow that it appears as two separate single taps to the android system.
P.S: I tried these on Samsung Galaxy Nexus phone.