mirror of
https://github.com/encounter/SDL.git
synced 2025-06-08 07:33:29 +00:00
SDL_x11xinput2.c: fix build for macOS
This commit is contained in:
parent
5907db56f1
commit
293d29b78a
@ -206,6 +206,7 @@ xinput2_remove_device_info(SDL_VideoData *videodata, const int device_id)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if SDL_VIDEO_DRIVER_X11_XINPUT2
|
||||||
static SDL_XInput2DeviceInfo *
|
static SDL_XInput2DeviceInfo *
|
||||||
xinput2_get_device_info(SDL_VideoData *videodata, const int device_id)
|
xinput2_get_device_info(SDL_VideoData *videodata, const int device_id)
|
||||||
{
|
{
|
||||||
@ -266,7 +267,7 @@ xinput2_get_device_info(SDL_VideoData *videodata, const int device_id)
|
|||||||
|
|
||||||
return devinfo;
|
return devinfo;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
X11_HandleXinput2Event(SDL_VideoData *videodata, XGenericEventCookie *cookie)
|
X11_HandleXinput2Event(SDL_VideoData *videodata, XGenericEventCookie *cookie)
|
||||||
@ -529,7 +530,6 @@ X11_Xinput2UngrabTouch(_THIS, SDL_Window *window)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif /* SDL_VIDEO_DRIVER_X11 */
|
#endif /* SDL_VIDEO_DRIVER_X11 */
|
||||||
|
|
||||||
/* vi: set ts=4 sw=4 expandtab: */
|
/* vi: set ts=4 sw=4 expandtab: */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user