• Advertisement

Archived

This topic is now archived and is closed to further replies.

Cursor Position

This topic is 5103 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How do you set the cursor position to stay in the middle of the screen, if it is possible cheers

Share this post


Link to post
Share on other sites
Advertisement
I don''t really know anything, but wouldn''t you just hide the cursor, and put a new one in the center of the screen, With the game responding to your cursor movements to move the screen, or whatever you planned?

Share this post


Link to post
Share on other sites
What API do you use ? OpenGL, DirectX, SDL, Win32?
is it a console app ?

[edited by - lemurion on March 4, 2004 3:34:32 PM]

Share this post


Link to post
Share on other sites
I''ll assume that you mean the mouse cursor...

It''s a platform-dependent thing, which is why APIs such as SDL provide wrappers for it. If you''re using Win32, SetCursorPos is what you need.

Share this post


Link to post
Share on other sites

  • Advertisement