src/video/x11/SDL_x11xinput2.h
author Sam Lantinga
Tue, 26 May 2015 06:27:46 -0700
changeset 9619 b94b6d0bff0f
parent 8149 681eb46b8ac4
child 9998 f67cf37e9cd4
permissions -rw-r--r--
Updated the copyright year to 2015
dimitris@6316
     1
/*
dimitris@6316
     2
  Simple DirectMedia Layer
slouken@9619
     3
  Copyright (C) 1997-2015 Sam Lantinga <slouken@libsdl.org>
dimitris@6316
     4
dimitris@6316
     5
  This software is provided 'as-is', without any express or implied
dimitris@6316
     6
  warranty.  In no event will the authors be held liable for any damages
dimitris@6316
     7
  arising from the use of this software.
dimitris@6316
     8
dimitris@6316
     9
  Permission is granted to anyone to use this software for any purpose,
dimitris@6316
    10
  including commercial applications, and to alter it and redistribute it
dimitris@6316
    11
  freely, subject to the following restrictions:
dimitris@6316
    12
dimitris@6316
    13
  1. The origin of this software must not be misrepresented; you must not
dimitris@6316
    14
     claim that you wrote the original software. If you use this software
dimitris@6316
    15
     in a product, an acknowledgment in the product documentation would be
dimitris@6316
    16
     appreciated but is not required.
dimitris@6316
    17
  2. Altered source versions must be plainly marked as such, and must not be
dimitris@6316
    18
     misrepresented as being the original software.
dimitris@6316
    19
  3. This notice may not be removed or altered from any source distribution.
dimitris@6316
    20
*/
icculus@8093
    21
#include "../../SDL_internal.h"
dimitris@6316
    22
dimitris@6316
    23
#ifndef _SDL_x11xinput2_h
dimitris@6316
    24
#define _SDL_x11xinput2_h
dimitris@6316
    25
dimitris@6316
    26
#ifndef SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS
gabomdq@7678
    27
/* Define XGenericEventCookie as forward declaration when
gabomdq@7677
    28
 *xinput2 is not available in order to compile */
dimitris@6316
    29
struct XGenericEventCookie;
dimitris@6316
    30
typedef struct XGenericEventCookie XGenericEventCookie;
slouken@7191
    31
#endif
dimitris@6316
    32
dimitris@6316
    33
extern void X11_InitXinput2(_THIS);
dimitris@6316
    34
extern void X11_InitXinput2Multitouch(_THIS);
dimitris@6316
    35
extern int X11_HandleXinput2Event(SDL_VideoData *videodata,XGenericEventCookie *cookie);
dimitris@6316
    36
extern int X11_Xinput2IsInitialized(void);
icculus@6432
    37
extern int X11_Xinput2IsMultitouchSupported(void);
dimitris@6316
    38
extern void X11_Xinput2SelectTouch(_THIS, SDL_Window *window);
dimitris@6316
    39
dimitris@6316
    40
#endif /* _SDL_x11xinput2_h */
dimitris@6316
    41
dimitris@6316
    42
/* vi: set ts=4 sw=4 expandtab: */