Fix -Wunused-function warning when configuring with -DSDL_X11_XINPUT2=OFF
parent
0e2866f846
commit
efdc92802f
|
@ -181,6 +181,7 @@ void X11_InitXinput2(_THIS)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if SDL_VIDEO_DRIVER_X11_XINPUT2
|
||||||
/* xi2 device went away? take it out of the list. */
|
/* xi2 device went away? take it out of the list. */
|
||||||
static void xinput2_remove_device_info(SDL_VideoData *videodata, const int device_id)
|
static void xinput2_remove_device_info(SDL_VideoData *videodata, const int device_id)
|
||||||
{
|
{
|
||||||
|
@ -202,7 +203,6 @@ static void xinput2_remove_device_info(SDL_VideoData *videodata, const int devic
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if SDL_VIDEO_DRIVER_X11_XINPUT2
|
|
||||||
static SDL_XInput2DeviceInfo *xinput2_get_device_info(SDL_VideoData *videodata, const int device_id)
|
static SDL_XInput2DeviceInfo *xinput2_get_device_info(SDL_VideoData *videodata, const int device_id)
|
||||||
{
|
{
|
||||||
/* cache device info as we see new devices. */
|
/* cache device info as we see new devices. */
|
||||||
|
|
Loading…
Reference in New Issue