Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Sending events to the emulator
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Sylvain MARLIERE  
View profile  
 More options Nov 25 2008, 6:39 am
From: "Sylvain MARLIERE" <sylvain.marli...@gmail.com>
Date: Tue, 25 Nov 2008 19:39:20 +0800
Local: Tues, Nov 25 2008 6:39 am
Subject: Re: Sending events to the emulator

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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »