X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fx11%2Ffreeglut_xinput_x11.c;h=d3d89680636a1cf38ad13d49f899911eff3326fc;hb=d685109e7dc055afb54e955e937eef7fb2ed4d1d;hp=40677faa1c46805a93e7b075c91bbc11b072ea05;hpb=57b0e0aeb1ffe8075226749cdd484d250966d0cf;p=freeglut diff --git a/src/x11/freeglut_xinput_x11.c b/src/x11/freeglut_xinput_x11.c index 40677fa..d3d8968 100644 --- a/src/x11/freeglut_xinput_x11.c +++ b/src/x11/freeglut_xinput_x11.c @@ -3,9 +3,9 @@ #include -#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 #include @@ -28,7 +28,7 @@ void fgRegisterDevices( Display* dpy, Window* win ) { 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 */ @@ -148,7 +148,7 @@ void fgHandleExtensionEvents( XEvent* base_ev ) { 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 );*/ @@ -212,8 +212,6 @@ void fgHandleExtensionEvents( XEvent* base_ev ) { } fgState.Modifiers = INVALID_MODIFIERS; } - XFreeEventData( fgDisplay.Display, cookie ); + XFreeEventData( fgDisplay.pDisplay.Display, cookie ); } -#endif -