mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
X11: use x11sym loaded functions (see bug #3978)
This commit is contained in:
parent
531d83bf6a
commit
62a562dea2
@ -276,6 +276,8 @@ SDL_X11_MODULE(XINPUT2)
|
|||||||
SDL_X11_SYM(XIDeviceInfo*,XIQueryDevice,(Display *a,int b,int *c),(a,b,c),return)
|
SDL_X11_SYM(XIDeviceInfo*,XIQueryDevice,(Display *a,int b,int *c),(a,b,c),return)
|
||||||
SDL_X11_SYM(void,XIFreeDeviceInfo,(XIDeviceInfo *a),(a),)
|
SDL_X11_SYM(void,XIFreeDeviceInfo,(XIDeviceInfo *a),(a),)
|
||||||
SDL_X11_SYM(int,XISelectEvents,(Display *a,Window b,XIEventMask *c,int d),(a,b,c,d),return)
|
SDL_X11_SYM(int,XISelectEvents,(Display *a,Window b,XIEventMask *c,int d),(a,b,c,d),return)
|
||||||
|
SDL_X11_SYM(int,XIGrabTouchBegin,(Display *a,int b,Window c,int d,XIEventMask *e,int f,XIGrabModifiers *g),(a,b,c,d,e,f,g),return)
|
||||||
|
SDL_X11_SYM(int,XIUngrabTouchBegin, (Display *a,int b,Window c, int d,XIGrabModifiers *e),(a, b, c, d, e),return)
|
||||||
SDL_X11_SYM(Status,XIQueryVersion,(Display *a,int *b,int *c),(a,b,c),return)
|
SDL_X11_SYM(Status,XIQueryVersion,(Display *a,int *b,int *c),(a,b,c),return)
|
||||||
SDL_X11_SYM(XIEventMask*,XIGetSelectedEvents,(Display *a,Window b,int *c),(a,b,c),return)
|
SDL_X11_SYM(XIEventMask*,XIGetSelectedEvents,(Display *a,Window b,int *c),(a,b,c),return)
|
||||||
#endif
|
#endif
|
||||||
|
@ -366,7 +366,7 @@ X11_Xinput2GrabTouch(_THIS, SDL_Window *window)
|
|||||||
XISetMask(eventmask.mask, XI_TouchEnd);
|
XISetMask(eventmask.mask, XI_TouchEnd);
|
||||||
XISetMask(eventmask.mask, XI_Motion);
|
XISetMask(eventmask.mask, XI_Motion);
|
||||||
|
|
||||||
XIGrabTouchBegin(display, XIAllDevices, data->xwindow, True, &eventmask, 1, &mods);
|
X11_XIGrabTouchBegin(display, XIAllDevices, data->xwindow, True, &eventmask, 1, &mods);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -382,7 +382,7 @@ X11_Xinput2UngrabTouch(_THIS, SDL_Window *window)
|
|||||||
mods.modifiers = XIAnyModifier;
|
mods.modifiers = XIAnyModifier;
|
||||||
mods.status = 0;
|
mods.status = 0;
|
||||||
|
|
||||||
XIUngrabTouchBegin(display, XIAllDevices, data->xwindow, 1, &mods);
|
X11_XIUngrabTouchBegin(display, XIAllDevices, data->xwindow, 1, &mods);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user