XInput2 Raw Messages

Patrick Baggett baggett.patrick at gmail.com
Mon Dec 6 12:14:56 PST 2010


Thanks! I'll check that out.

Patrick

On Mon, Dec 6, 2010 at 1:48 PM, Chase Douglas
<chase.douglas at canonical.com>wrote:

> On 12/06/2010 02:09 AM, Patrick Baggett wrote:
> > I'm using Ubuntu 10.10 and testing out some examples using XI2. I don't
> > appear to be getting all the raw messages I've selected however, and I
> > can't explain why. I've attached a program that demonstrates my problem.
> > I can only get the XI_RawMotion and XI_RawButtonPress events to show up
> > when I perform various actions, but I was expecting to see the
> > RawButtonRelease/RawKeyPress/RawKeyRelease as well. Is this a problem
> > with the X server or my program?
>
> From the attachment:
>
>        eventmask.deviceid = 2;
>
> You seem to want all raw events from all devices. You should be using
> XIAllDevices instead of a single device ID. You're likely only picking
> up the "Virtual core pointer", which would explain why you're not
> getting keypress events.
>
> > Another issue that seems to happen is that when I click and drag, no
> > motion events are reported. I'm not sure if that isn't intentional
> though.
>
> You might be noticing implicit passive grabbing?
>
> http://www.x.org/wiki/Development/Documentation/GrabProcessing
>
> You might want to check out xinput. You can run "xinput test-xi2" to see
> all the XI 2.0 events generated. The code is pretty simple too, so you
> should be able to compare what it's doing to your own code.
>
> -- Chase
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-devel/attachments/20101206/5500dc1a/attachment.html>


More information about the xorg-devel mailing list