how to set cursor position in gtk -Linux, MonoDevelop

前端 未结 1 1073
眼角桃花
眼角桃花 2021-01-12 16:14

Okay, so I thought I would get into Linux development. However, I found that you cant hardly manipulate the mouse and keyboard. My question is does GTK not support that sort

相关标签:
1条回答
  • 2021-01-12 16:34

    Since you mention using MonoDevelop on Linux, I assume you are using Gtk#. Using Gtk#, you need to use Gdk.Display.WarpPointer. Untested, but probably something like the following would work:

    Gdk.Display.Default.WarpPointer(Gdk.Display.DefaultScreen, 20, 20);
    
    0 讨论(0)
提交回复
热议问题