migueltk's picture

About hiding the cursor using GameWindow in Linux

Hi, ...

I've been looking for ways to hide the cursor using GameWindow in linux and I could not solve the problem. The easiest solution for me would make a call to XDefineCursor () of the X11 library, but I have no knowledge to do this.

Is OpenTK implementing this functionality?

If I use a OpenTK.GLControl no problem, but I understand that is slower than a GameWindow and also in linux (Ubuntu) rearrange full screen from a Windows.Form not work well.

Any solution, please.

Regards, ...


Comments

Comment viewing options

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

This is on the todo list. As a workaround, you can reference System.Windows.Forms and use Cursor.Hide() to disable the cursor.

migueltk's picture

System.Windows.Forms.Cursor.Hide () works fine in windows but not on Linux (Ubuntu). Thanks for your response.

Regards, ...

the Fiddler's picture