View Full Version : Mouse Position Testing w/ Pixels

04-19-2001, 04: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, 06:39 AM
Are you by any chance using MFC?

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

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

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

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