Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Don't call XInput2 multitouch APIs if they aren't supported.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Sep 17, 2012
1 parent 5495d42 commit 3e5c11c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/video/x11/SDL_x11xinput2.c
Expand Up @@ -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 };
Expand Down

0 comments on commit 3e5c11c

Please sign in to comment.