inject events into a named pipe
jon at number-none.com
Fri Feb 2 10:28:00 PST 2007
I am actually willing to implement this, too. I am putting together a
laundry list of things that would be good for games to have in order to
generally improve the user experience, but I figure I want to spend at
least a month or so familiarizing myself with X before I put forth a
proposal about this stuff (it's been a long time since I used X on a
regular basis). For example, the ability to tie resolution changes or
cursor speed settings to a client connection (so that they revert if the
client is killed / etc). [Which for all I know may be in there now and
I just don't know how to do it -- which is what I am talking about with
the familiarization thing].
Peter Hutterer wrote:
> On 02/02/2007, at 09:41 , Jonathan B. wrote:
>> I am actually looking to do the same thing (confine the mouse pointer
>> to a window -- similar to the behavior of ClipCursor in Win32).
>> In my case, it's because games really need to be able to do that.
>> Right now I am doing "make the cursor invisible, draw your own, keep
>> warping it to the center of the window, and read the delta every
>> frame" but there are a lot of problems with that and it is just
>> inappropriate for certain types of games.
>> Of course, XGrabPointer will constrain the mouse pointer but it is
>> way too severe in its other effects.
> it's one of the things that annoyed me a while ago. It's not easy to
> get delta coordinates from the device (especially if the cursor is
> I'm _really_ busy till the end of march but after that I might get
> around to putting some events in that give you deltas directly. don't
> hold me to it though.
> Multi-Pointer X Server
More information about the xorg