Is there a way to obtain the co-ordinates of mouse clicks and distinguish between different mouse buttons in Fortran ? Kindly do consider this feature. This will make PLplot a complete replacement of the PGplot for Fortran.
Cursor input is not a big aspect of the plplot drivers; a left-button-down and character input events are the extent of what wingcc, xwin.c (the windows and x-windows driver routines) care about.
To get the control you want you can do direct Xlib calls as shown from {GDL-sourceforge}/gdlxstream.cpp:
//simple GetGin that reproduces IDL's own.
//However, trapping controlC should be done inside, to clean properly.
Cursor input is not a big aspect of the plplot drivers; a left-button-down and character input events are the extent of what wingcc, xwin.c (the windows and x-windows driver routines) care about.
To get the control you want you can do direct Xlib calls as shown from {GDL-sourceforge}/gdlxstream.cpp:
//simple GetGin that reproduces IDL's own.
//However, trapping controlC should be done inside, to clean properly.
A windows method is also to be found in the same code base, at gdlwinstream.cpp.
Last edit: GregJung 2015-10-03
Closed (too old).