how to get fake input events to a Xinput2 master device?
beier at informatik.hu-berlin.de
Sun Nov 23 18:43:50 PST 2008
On Mon, 24 Nov 2008 11:14:51 +1000
Peter Hutterer <peter.hutterer at who-t.net> wrote:
> the catch is that - with the MD always looking like the last SD that sent an
> event - you're prone to send events that get swallowed or scaled weirdly when
> you send through the MD directly instead of through the SD.
Okay, I'm confused now. I understand that I can address some device
(MD or SD) via XTestFakeDeviceButtonEvent() etc. So I could send fake
events to a MD I just created (with sth. like xinputs create_master() ).
And i know which MD is connected to which event source by keeping track
of the names i gave them and find the corresponding XDeviceInfo*
(and therefore id) via sth like find_device_info() in xinput.c. So each
of my MDs would be connected to one of my event sources.
Please correct me if I got something wrong (or don't see the
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
More information about the xorg