Simulate mouse/keyboard events (gtk + HOOPS 3D)

1k views Asked by At

how can I simulate mouse/keyboard events in gtk/gdk? I have a window widget containing HOOPS 3D widget and need to simulate mouse clicking on various parts of the window, along with simulating keyboard, ie. CTRL pressed, etc.

I found http://developer.gnome.org/gtk/2.24/gtk-Testing.html but this isn't quite what I need (specific X,Y, and keyboard events)

Thanks

3

There are 3 answers

0
Marin On BEST ANSWER

Since I need this to invoke HOOPS 3D widget's events, I found that it is not necessary to do it through gtk, it is possible to do so by injecting events into hoops itself http://developer.hoops3d.com/documentation/HoopsMVO/ref_manual/class_h_event_info.html - Using the SetWindowPos API.

0
BoZ On

override function from base class HBaseOperator. create a new operator class. ex: public class xx: HBaseOperator {

}

1
pyInTheSky On