teichgraf's picture

How to get GameWindow.Location ?

Hello again.

Is it possible to get the current location of the GameWindow on screen?
Something like:



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Mantheren's picture


I also was looking for a way to get the Location of the window.
For me I wanted to hold the mouse cursor in the center of the window while the right button is down.

Perhaps there is another way to do this without knowing the current window position?
Otherwise I think this would be handy.


P.s. I just started playing around with OpenTk and its looking great... Keep up the awesome work. :)

-- Edit --
Well i have changed my approach and in stead of centering the cursor I just freeze it when the mouse button is down.
That way I no longer need the Location. Probably better like this anyway, since I have less calculations.
-- End Edit--