How can I set the cursor position in X Window??
I''m using C++ to implement a first person view walk through program. I want to use a mouse to control the orientation of the camera. So I want to set the cursor to the center of the window and check the value away from the center after the mouse is moved. However, I don''t know how to set the cursor to the specific position. Can anyone help me????
Thx
chikit
Platform? API?
If it''s Win32, look into SetCursorPosition().
[ GDNet Start Here | GDNet Search Tool | GDNet FAQ | MS RTFM [MSDN] | SGI STL Docs | Google! ]
Thanks to Kylotan for the idea!
If it''s Win32, look into SetCursorPosition().
[ GDNet Start Here | GDNet Search Tool | GDNet FAQ | MS RTFM [MSDN] | SGI STL Docs | Google! ]
Thanks to Kylotan for the idea!
He said X Window.
Edit: I don't find anything, and I doubt it is even possible, since the mouse position data is on the client side.
Edited by - Fruny on January 29, 2002 3:55:03 PM
Edit: I don't find anything, and I doubt it is even possible, since the mouse position data is on the client side.
Edited by - Fruny on January 29, 2002 3:55:03 PM
XWarpPointer() (<gdkx.h>)
[ GDNet Start Here | GDNet Search Tool | GDNet FAQ | MS RTFM [MSDN] | SGI STL Docs | Google! ]
Thanks to Kylotan for the idea!
[ GDNet Start Here | GDNet Search Tool | GDNet FAQ | MS RTFM [MSDN] | SGI STL Docs | Google! ]
Thanks to Kylotan for the idea!
I''m just that good
[ GDNet Start Here | GDNet Search Tool | GDNet FAQ | MS RTFM [MSDN] | SGI STL Docs | Google! ]
Thanks to Kylotan for the idea!
[ GDNet Start Here | GDNet Search Tool | GDNet FAQ | MS RTFM [MSDN] | SGI STL Docs | Google! ]
Thanks to Kylotan for the idea!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement