[ioquake3] ioquake3 mouse access
Ryan C. Gordon
icculus at icculus.org
Sat Jan 31 13:58:04 PST 2009
> Is there any documentation on the data path between the mouse hardware
> all the way to the application?
It gets mouse events from SDL, which gets them from X11 as window
events, not raw input.
Look for MotionNotify in X11_DispatchEvent()...
...the call to SDL_PrivateMouseMotion() in there puts an event on the
queue that Quake 3 obtains with SDL_PollEvent().
We can't stop the X server from buffering motion events, though. There's
been some talk of an X11 extension that allows more direct access, but
it doesn't exist yet, as far as I can tell.
More information about the ioquake3