Phoronix: Pointer Lock Feature Proposed For Wayland
Kristian Høgsberg has proposed patches to Wayland and the Weston compositor for implementing pointer locks. Pointer locks allow for applications to lock the pointer so they receive relative inputs, which can improve the handling of some games running on Wayland...
Evdev plus friends? With relative pointers, there should be support now already. Don't really know/understand what 'native' implies though.
Yeah, I'm talking about evdev (see Scott's reply to my mail on the ml).
Basically, currently there is no integration of X11 and gamepad input (AFAIK),
so to create a gameloop mouse/keyboard/window events have to be polled separately from joypad input,
which leads to complications if you want to do blocking input calls.
What I'm hoping for with wayland is that a game can get the entirety of its input from one blocking
libwayland call without code duplication and gamepad detection hacks.
The word you're looking for is "protocol extension", and I think it would be very much doable.
Your compositor of choice would have to implement the extension however.
There are two ways AFAIK
1. "Protocol Extension": extend the protocol to include such events, so that synergy can work as a wayland client;
2. "Weston Plugin": load the synergy library as a plugin of weston, so that synergy can work as a wayland server plugin (just like desktop-shell.so)
I prefer the first one however, or synergy needs maintain plugins for each composer. I didn't see the furture that every composer (KWin, Gnome-shell, etc.) is developed as a plugin of weston.