Sign in to follow this  
Maverick Programmer

Going from windows headers to glut

Recommended Posts

Okay, I'm not entirely aure if this is the right place to put this so, Mods, move if needed. Okay, here's my problem: I have a camera engine built in windows that I made and a scenery program I made with glut so it could be cross-platform. Well, I combine the two programs so I could move around in my scenery. Unfortunately, when I removed all the windows needed functions from the camera program, I forgot I had GetCursorPos and SetCursorPos in the script commands. Is there a function in glut, a header file, or anything that I can use to work like GetCursorPos and SetCursorPos to replace them so my program will work? Thank you. ~PCN

Share this post


Link to post
Share on other sites
you can use SDL to do that (libsdl.org). SDL is cross-platform also so you should not have a problem. Take a look at the docs for mouse and events:

SDL_WarpMouse()
http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fWarpMouse

SDL Events:
http://www.libsdl.org/cgi/docwiki.cgi/Introduction_20to_20Events

Share this post


Link to post
Share on other sites

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