src/video/x11/SDL_x11touch.c
author Ryan C. Gordon <icculus@icculus.org>
Mon, 06 Apr 2015 00:10:54 -0400
changeset 9458 543298b36b28
parent 8149 681eb46b8ac4
child 9619 b94b6d0bff0f
permissions -rw-r--r--
This function can be static.
jim@4645
     1
/*
slouken@5535
     2
  Simple DirectMedia Layer
slouken@8149
     3
  Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
jim@4645
     4
slouken@5535
     5
  This software is provided 'as-is', without any express or implied
slouken@5535
     6
  warranty.  In no event will the authors be held liable for any damages
slouken@5535
     7
  arising from the use of this software.
jim@4645
     8
slouken@5535
     9
  Permission is granted to anyone to use this software for any purpose,
slouken@5535
    10
  including commercial applications, and to alter it and redistribute it
slouken@5535
    11
  freely, subject to the following restrictions:
jim@4645
    12
slouken@5535
    13
  1. The origin of this software must not be misrepresented; you must not
slouken@5535
    14
     claim that you wrote the original software. If you use this software
slouken@5535
    15
     in a product, an acknowledgment in the product documentation would be
slouken@5535
    16
     appreciated but is not required.
slouken@5535
    17
  2. Altered source versions must be plainly marked as such, and must not be
slouken@5535
    18
     misrepresented as being the original software.
slouken@5535
    19
  3. This notice may not be removed or altered from any source distribution.
jim@4645
    20
*/
icculus@8093
    21
#include "../../SDL_internal.h"
slouken@5481
    22
slouken@5481
    23
#if SDL_VIDEO_DRIVER_X11
slouken@5481
    24
jim@4645
    25
#include "SDL_x11video.h"
slouken@4923
    26
#include "SDL_x11touch.h"
dimitris@6316
    27
#include "SDL_x11xinput2.h"
jim@4645
    28
#include "../../events/SDL_touch_c.h"
jim@4645
    29
jim@4681
    30
jim@4645
    31
void
jim@4645
    32
X11_InitTouch(_THIS)
jim@4645
    33
{
slouken@6951
    34
    if (X11_Xinput2IsMultitouchSupported()) {
dimitris@6316
    35
        X11_InitXinput2Multitouch(_this);
dimitris@6316
    36
    }
jim@4645
    37
}
jim@4645
    38
jim@4645
    39
void
jim@4645
    40
X11_QuitTouch(_THIS)
jim@4645
    41
{
jim@4645
    42
    SDL_TouchQuit();
jim@4645
    43
}
jim@4645
    44
slouken@5481
    45
#endif /* SDL_VIDEO_DRIVER_X11 */
slouken@5481
    46
jim@4645
    47
/* vi: set ts=4 sw=4 expandtab: */