Using XInput 2 to simulate touchevents

mugunthan ext-mugunthan.1.ravichandran at nokia.com
Wed Feb 9 07:17:20 PST 2011


I got it ... thanks a lot for your inputs ... I have just one more
question 

when I m running the evtest  for a device .like this 

======================================
Input driver version is 1.0.1
Input device ID: bus 0x11 vendor 0x2 product 0x7 version 0x1b1
Input device name: "SynPS/2 Synaptics TouchPad"
Supported events:
  Event type 0 (Sync)
  Event type 1 (Key)
    Event code 272 (LeftBtn)
    Event code 273 (RightBtn)
    Event code 274 (MiddleBtn)
    Event code 277 (ForwardBtn)
    Event code 278 (BackBtn)
    Event code 325 (ToolFinger)
    Event code 330 (Touch)
  Event type 3 (Absolute)
    Event code 0 (X)
      Value   2108
      Min     1472
      Max     5598
      Resolution      67
    Event code 1 (Y)
      Value   3821
      Min     1408
      Max     4670
      Resolution     111
    Event code 24 (Pressure)
      Value      0
      Min        0
      Max      255
    Event code 28 (Tool Width)
      Value      0
      Min        0
      Max        0
Testing ... (interrupt to exit)
===========================================

how could I specify evtest to run only for " Event code 330 "

Thanks,
Mugu
On Wed, 2011-02-09 at 14:47 +0000, ext Daniel Stone wrote:

> On Wed, Feb 09, 2011 at 04:30:54PM +0200, mugunthan wrote:
> > I already have the hardware. So I would like to test on that . 
> > So I was wondering how to do that.
> 
> I have no idea what you're actually asking.  If you have hardware which
> you want to test on, then use the hardware.  The text file I pointed you
> to has documentation which will let you capture a stream of events from
> the hardware and set up a test device which will replay those events at
> will (i.e. fake events).
> 
> There are other ways to simulate input events but they aren't nearly as
> accurate as evtest.  But you can look at xnee and xresponse (which are
> both widely used within MeeGo) to find out how they do it.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-devel/attachments/20110209/fe460c5f/attachment.htm>


More information about the xorg-devel mailing list