Re: how to get fake input events to a Xinput2 master device?

2008-11-24 Thread Peter Hutterer
On Tue, Nov 25, 2008 at 09:51:34AM +1100, Daniel Stone wrote: > On Mon, Nov 24, 2008 at 07:17:52PM +0100, Christian Beier wrote: > > On Mon, 24 Nov 2008 18:50:38 +1100 > > Daniel Stone <[EMAIL PROTECTED]> wrote: > > > How about being able to create new SDs, a la uinput? > > > > Using uinput would

Re: how to get fake input events to a Xinput2 master device?

2008-11-24 Thread Christian Beier
On Mon, 24 Nov 2008 18:50:38 +1100 Daniel Stone <[EMAIL PROTECTED]> wrote: > How about being able to create new SDs, a la uinput? Using uinput would undoubtly be the cleaner solution, but would limit the application to Linux and would need fiddling with udev rules for the right permissions in /dev

Re: how to get fake input events to a Xinput2 master device?

2008-11-23 Thread Daniel Stone
On Mon, Nov 24, 2008 at 11:14:51AM +1000, Peter Hutterer wrote: > On Sun, Nov 23, 2008 at 02:14:10AM +0100, Christian Beier wrote: > > Sounds in a way more feasible to me than hacking around with uinput. > > And x11vnc is doing it via XTEST as well. Okay, i can only submit > > key/button presses an

Re: how to get fake input events to a Xinput2 master device?

2008-11-23 Thread Peter Hutterer
On Mon, Nov 24, 2008 at 03:43:50AM +0100, Christian Beier wrote: > 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() ). yeah, as long as

Re: how to get fake input events to a Xinput2 master device?

2008-11-23 Thread Christian Beier
On Mon, 24 Nov 2008 11:14:51 +1000 Peter Hutterer <[EMAIL PROTECTED]> 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. >

Re: how to get fake input events to a Xinput2 master device?

2008-11-23 Thread Peter Hutterer
On Sun, Nov 23, 2008 at 02:14:10AM +0100, Christian Beier wrote: > Sounds in a way more feasible to me than hacking around with uinput. > And x11vnc is doing it via XTEST as well. Okay, i can only submit > key/button presses and motion events, but I can't get any more over the > wire with RFB anywa

Re: how to get fake input events to a Xinput2 master device?

2008-11-22 Thread Christian Beier
On Sat, 22 Nov 2008 16:57:17 +1000 Peter Hutterer <[EMAIL PROTECTED]> wrote: > On Sat, Nov 22, 2008 at 01:52:48AM +0100, Christian Beier wrote: > > (1) Master Devices created on the fly: > > XTestFakeDeviceButtonEvent, etc. It injects the event server-sided as if the > event was created by the inp

Re: how to get fake input events to a Xinput2 master device?

2008-11-21 Thread Peter Hutterer
On Sat, Nov 22, 2008 at 01:52:48AM +0100, Christian Beier wrote: > (1) Master Devices created on the fly: > I know it's possible to create MD's via xinput, but i've got no idea > how to get application-generated events (from x11vnc) to a specific > master device. Via XTEST maybe? But according to >

Re: how to get fake input events to a Xinput2 master device?

2008-11-21 Thread Daniel Stone
On Sat, Nov 22, 2008 at 01:52:48AM +0100, Christian Beier wrote: > So far i've got MPX up and running, the question i now have is: > How can i make x11vnc create a new Master Device (or Slave Device) for > each connected client and route this client's input events to the > corresponding master devi

how to get fake input events to a Xinput2 master device?

2008-11-21 Thread Christian Beier
Hi there! My first post on this list... I am currently trying to create a networked multi-user collaboration environment, based on Peter Hutterers great MPX (for the multi user part) and x11vnc (networking) as part of a university project. So far i've got MPX up and running, the question i now