I’m trying to test the position of my mouse with mpos.x and mpos.y calls. I tried to do this by using GetCursorPos(&mpos) before I test the x and y values of the mouse. But for some reason this doesn’t work. My program flickers inbetween screens when I move my mouse around (it’s button testing). The only idea that I can come up with is that I’m not using the GetCursorPos() function properly. Please help me. If you would like to see the program email me at firstname.lastname@example.org and I’ll send it to you. Thanks.
Are you by any chance using MFC?
If so have you overridden OnEraseBkGnd() and made it always return TRUE?
I’m using WIN api. I learned my OpenGL from nehe’s website.
Are you using double buffering?
Yes, I am.