#include <GL/freeglut.h>
-#include "freeglut_internal.h"
+#include "../Common/freeglut_internal.h"
-#if TARGET_HOST_POSIX_X11 && HAVE_X11_EXTENSIONS_XINPUT2_H
+#if HAVE_X11_EXTENSIONS_XINPUT2_H
#include <errno.h>
#include <stdarg.h>
unsigned char flags[2] = { 0, 0 };
int event, error;
- /*Display* dpy = fgDisplay.Display;
+ /*Display* dpy = fgDisplay.pDisplay.Display;
Window* win = glutGetXWindow();*/
/* get XInput extension opcode */
int i, button = 0;
XGenericEventCookie* cookie = (XGenericEventCookie*)&(base_ev->xcookie);
- if ( XGetEventData( fgDisplay.Display, cookie ) && (cookie->type == GenericEvent) && (cookie->extension == xi_opcode) ) {
+ if ( XGetEventData( fgDisplay.pDisplay.Display, cookie ) && (cookie->type == GenericEvent) && (cookie->extension == xi_opcode) ) {
XIDeviceEvent* event = (XIDeviceEvent*)(cookie->data);
/*printf("XI2 event type: %d - %d\n", cookie->evtype, event->type );*/
}
fgState.Modifiers = INVALID_MODIFIERS;
}
- XFreeEventData( fgDisplay.Display, cookie );
+ XFreeEventData( fgDisplay.pDisplay.Display, cookie );
}
-#endif
-
+#endif\r
+\r