-int wxAddProcessCallback(wxEndProcessData *proc_data, int fd)
-{
- wxFAIL_MSG(wxT("wxAddProcessCallback not implemented in wxMGL!"));
- return 0;
-#if 0 // FIXME_MGL -do we need it at all?
- int tag = gdk_input_add(fd,
- GDK_INPUT_READ,
- GTK_EndProcessDetector,
- (gpointer)proc_data);
-
- return tag;
-#endif
+ extern unsigned long g_buttonState;
+ ms.SetLeftDown(g_buttonState & EVT_LEFTBUT);
+ ms.SetMiddleDown(g_buttonState & EVT_MIDDLEBUT);
+ ms.SetRightDown(g_buttonState & EVT_RIGHTBUT);
+
+ ms.SetControlDown(EVT_isKeyDown(KB_leftCtrl) || EVT_isKeyDown(KB_rightCtrl));
+ ms.SetShiftDown(EVT_isKeyDown(KB_leftShift) || EVT_isKeyDown(KB_rightShift));
+ ms.SetAltDown(EVT_isKeyDown(KB_leftAlt));
+ ms.SetMetaDown(EVT_isKeyDown(KB_rightAlt));
+
+ return ms;