[ioquake3] ioquake3 mouse access

Dominic Fandrey kamikaze at bsdforen.de
Sat Jan 31 15:34:49 PST 2009


Ryan C. Gordon wrote:
> 
>> 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()...
> 
> http://www.libsdl.org/cgi/viewvc.cgi/branches/SDL-1.2/src/video/x11/SDL_x11events.c?revision=4210&view=markup
> 
> 
> ...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.
> 
> --ryan.

Thanks a lot. So deactivating acceleration features is in deed necessary
to ensure that ioq3 does not get mangled data.

Regards


More information about the ioquake3 mailing list