[Xcb] Multiseat game with XCB.

Alexander Mezin mezin.alexander at gmail.com
Tue Jun 3 22:52:14 PDT 2014


2014-06-02 19:38 GMT+07:00 Christ-Jan Wijtmans <cj.wijtmans at gmail.com>:
> I have been programming a gaming engine for a game i want to develop.
> Thought i would be smart and parse udev files myself which is easy enough,
> however i quickly discovered that you require root privileges for that on
> (nearly?)all distros and the only way to get input is to go through the
> displaymanager or whatever makes it go through the window tree. Which made
> me wonder how would SteamOS handle such a thing with multiple controllers?
> Anyhow i do not believe through XCB i can see what device the input came
> from? And how would wayland handle such a thing?
> Could XCB be patched up so it would give some device information(all i need
> is an id but a name of the device would be useful to) on input events or is
> it completely abstracted from xorg-server?

I would recommend you take a look at SDL library: http://libsdl.org/
I don't think it's a good idea to use XInput for game input.


More information about the Xcb mailing list