View Full Version : Mouse Position Testing w/ Pixels

04-19-2001, 03:26 AM
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 cat_slacker@yahoo.com and I'll send it to you. Thanks.

04-19-2001, 05:39 AM
Are you by any chance using MFC?

If so have you overridden OnEraseBkGnd() and made it always return TRUE?

04-19-2001, 10:11 AM
I'm using WIN api. I learned my OpenGL from nehe's website.

04-19-2001, 10:56 AM
Are you using double buffering?

04-20-2001, 05:35 AM
Yes, I am.