[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Best method for mouse input
- To: email@example.com
- Subject: Best method for mouse input
- From: Simon Michelmore <firstname.lastname@example.org>
- Date: Wed, 09 Oct 2002 19:13:27 +0100
- Delivered-To: email@example.com
- Delivered-To: mailing list firstname.lastname@example.org
- Delivery-Date: Wed, 09 Oct 2002 14:14:07 -0400
- Mailing-List: contact email@example.com; run by ezmlm
- Organization: Moving Picture Company
- Reply-To: firstname.lastname@example.org
- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529
Simple issue, I would have thought, but something which has given me a
bit of pain today - what's the best method for getting Mouse events
under X? This is primarily for a camera control class that I'm working
on. Works under Win32, but XFree86 is proving somewhat more troublesome.
I ask becuase I've been trying a few methods and none seen completely
ideal. To wit:
- Using straight X events and calls. Problem is XWarpPointer lags
horribly. It works, but you get long delays if you move the mouse around
a lot as you generate tonnes of X events.
- Using DGA. Unfortunately I've been unable to find any useful
documentation on DGA, but my tinkering suggests that you can only init
the DGA extensions in full screen mode. Unfortunately I want to use
Window modes, as well as full screen.
- SDL. All good and well, but frankly I'm not really in the mood to deal
with SDLs backward incompatibility.
Obviously I'm missing something crucial here, but I'm starting not to
see the woods for the trees. It's somewhat embarrassing that I'm stumped
by this one - mouse input _should_ be simple. One can muck around with
OpenGL/OpenAL, 3D math, network programming and so on and so forth for
years and still get stuck on the simpliest of things :)
It just seems as if there is no 100% correct and perfect way to do mouse
input under X. Anybody care to enlighten me further?
email(n) - the current trend in modern postism.