#include <ggi/ggi.h> #define ggiGetInput(vis) ggiJoinInputs(vis, NULL) gii_input_t ggiDetachInput(ggi_visual_t vis);
ggiDetachInput also returns the underlying input-handle, but in addition, it breaks the association between the given visual and that input handle. After this has been done, no LibGGI event routines may be called on that visual handle, and when the visual handle is closed, the input will remain unaffected.