
Mouse capture
Posted Thursday, 20 January, 2011 - 09:57 by cody inThere doesnt seam to be mouse capture support in OpenTK yet. That is hiding the mouse cursor and preventing the mouse to leave the window.
Is it on the TODO list already?
If not where would be the right place to implement it?
It is really needed for FPS-like games I think.


Comments
Re: Mouse capture
To capture the cursor, set:
CursorVisible = false;for the GameWindow you are using. This hides and captures the cursor.
If you wish to allow the hidden cursor to leave the window, just set
CursorVisible = trueonce the mouse touches the window border.Re: Mouse capture
Whoops somehow I didnt see this property... thanks.
Re: Mouse capture
Uhm... you mean GameWindow.CursorVisible? I really cant find that property...
Re: Mouse capture
You need the latest code from SVN. I misread your original post and thought you were using that already.
It's
GameWindow.CursorVisible.