GLX / Xlib, XGrabPointer
Hi! How can I get continuous motion for the pointer, i.e. that it doesn't stop on the edge of the window (or root window). Is that possible, or do I have to deal with it myself, and warp the pointer to the other side of the window? I want to use pointer motion events to control a camera in my program.
How about reading the mouse cursor, then set it to the middle of the screen?
Albert
Albert
-------------------------------------------http://www.thec.org
(Why aren't you using SDL? Xlib itself is going to become a legacy api in the next few years.)
Quote:
Original post by C-Junkie
(Why aren't you using SDL? Xlib itself is going to become a legacy api in the next few years.)
Mainly because I don't want to rely on SDL.
What makes you think Xlib is going to become a legacy api?
Quote:
don't warp the pointer. grabbing it will give you correct continuous motion
Unfortunatly it doesn't for me. I get positions from (0,0) - (width, height), if I restrict it to the window, if I don't restrict it, it will go the the edges of the root window, but stop there.
Care to elaborate?
I might do it as suggested by thec..
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement