mirror of
https://github.com/yawut/SDL.git
synced 2026-07-31 07:27:07 -05:00
Don't call XInput2 multitouch APIs if they aren't supported.
I think it fixes this: http://forums.libsdl.org/viewtopic.php?t=8324&sid=ae797309f9e2084cadc1b6a7615bd0e4
This commit is contained in:
parent
ccecbd6882
commit
12743aea71
|
|
@ -220,6 +220,10 @@ X11_InitXinput2Multitouch(_THIS) {
|
|||
void
|
||||
X11_Xinput2SelectTouch(_THIS, SDL_Window *window) {
|
||||
#if SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH
|
||||
if (!X11_Xinput2IsMultitouchSupported()) {
|
||||
return;
|
||||
}
|
||||
|
||||
SDL_VideoData *data = (SDL_VideoData *) _this->driverdata;
|
||||
XIEventMask eventmask;
|
||||
unsigned char mask[3] = { 0,0,0 };
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user