Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

OpenGL fullscreen mouse coordinates

XLoomXLoom Posts: 129Member
[b][red]This message was edited by XLoom at 2003-6-2 0:55:14[/red][/b][hr]
Good morning (it is morning here)

I was building a small texture editor in opengl, when I noticed that mouse coordinates dont go out from range X:0-1021 Y:0-765 with resolution 1024x768x16 and X:0-797 Y:0-595 with 800x600x16 and probably with other resolutions as well. Another thing is that WM_MOUSEMOVE message does not seem to arrive always when mouse is closing to the resolution borders. Is the window with different size or something? If someone knows the reason for either of these things I would like to know as well.

(:----------- A bit later same day ----------------:)

Ok no need to reply, I found a simple solution. Instead of using WM_MOUSEMOVE event, I use GetCursorPos(Point *p), this corrects the problem.

XLoom


Sign In or Register to comment.