Sign in to follow this  

Anyone knows how to get Mouse position ( without click the mouse button )?

This topic is 4865 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

Hi, I want to implement the function that I can move a paddle in my game with the movement of my mouse but without clicking the mouse button ( clicking only means to begin the game ). Anyone knows how to do this? Thanks.

Share this post


Link to post
Share on other sites
If you are using Windows, you can call GetCursorPos(LPPOINT *point). If you are using dos, you can use the int 33h fun 0003 (see Ralf Brown's interrupt list (hey ! I'm so happy to see it's still available on the web !!!). If you are using SDL then check the SDL documentation.

Er...

I forgot to ask : what OS / lib areyou using ? :)

HTH

Share this post


Link to post
Share on other sites

This topic is 4865 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this