I am converting a PyGTK program to nim. The graphics work, but I am having a problem with mouse processing.
I want to detect a mouse button press, determine which one of the 3 mouse buttons was pressed, and get the x,y coordinates of the press. From the gtk3 samples and docs, it was not clear to me how to do this.
not clear to me how to do this
In case it is related to Gintro, it is very similar as in C or Python -- the GUI of salewski-chess is a very simple example how to get the x, y coordinates. It is different for GTK3 and GTK4, but as GTK4 is available for more than 2 years now, you may actually use GTK4 when possible. For more details about Gintro, you may use the Gintro Github issue tracker, Gnome forum, private email or other channels. I will not reply in this thread, as I do not intent to pollute their forums with my ramblings. For the other Nim GTK bindings, I can not help you, as I never used them, sorry.
References: