How to create messy events using GJS

I will get {x, y} data from the network corresponding to the pixel coordinate.

I would like to create a disordered event, or at least inform the system (degree of disorder), there is a mouse movement to the received data {x, y}.

I looked at the informal GJS documentation: http://www.roojs.com/seed/gir-1.2-gtk-3.0/seed/Clutter.Event.html

ev = new Clutter.Event(); // or Clutter.Event(Clutter.TouchEvent) are not working 
+1
gnome gnome-shell gnome-shell-extensions gjs clutter
source share
1 answer

You cannot create events in GJS because the ClutterEvent data structure is not really introspective because there are many historical reasons.

In addition, creating ClutterEvents is not something you should do; events come from the window system, and you cannot just synthesize them on the client code and expect Clutter to work as usual.

+2
source share

All Articles