Jump to content
  • Advertisement

Archived

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

will30

Cursor Position

This topic is 5344 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!