src/video/x11/SDL_x11mouse.h
author Sam Lantinga
Sun, 24 Jan 2010 21:10:53 +0000
changeset 3697 f7b03b6838cb
parent 2940 b93965a16fe0
child 5262 b530ef003506
permissions -rw-r--r--
Fixed bug #926

Updated copyright to LGPL version 2.1 and year 2010
     1 /*
     2     SDL - Simple DirectMedia Layer
     3     Copyright (C) 1997-2010 Sam Lantinga
     4 
     5     This library is free software; you can redistribute it and/or
     6     modify it under the terms of the GNU Lesser General Public
     7     License as published by the Free Software Foundation; either
     8     version 2.1 of the License, or (at your option) any later version.
     9 
    10     This library is distributed in the hope that it will be useful,
    11     but WITHOUT ANY WARRANTY; without even the implied warranty of
    12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    13     Lesser General Public License for more details.
    14 
    15     You should have received a copy of the GNU Lesser General Public
    16     License along with this library; if not, write to the Free Software
    17     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    18 
    19     Sam Lantinga
    20     slouken@libsdl.org
    21 */
    22 #include "SDL_config.h"
    23 
    24 #ifndef _SDL_x11mouse_h
    25 #define _SDL_x11mouse_h
    26 
    27 #if SDL_VIDEO_DRIVER_X11_XINPUT
    28 typedef struct X11_MouseData
    29 {
    30     Display *display;
    31     XDevice *device;
    32     int motion;
    33     int button_pressed;
    34     int button_released;
    35     int proximity_in;
    36     int proximity_out;
    37     int num_xevents;
    38     XEventClass xevents[5];
    39 } X11_MouseData;
    40 #endif
    41 
    42 extern void X11_InitMouse(_THIS);
    43 extern void X11_QuitMouse(_THIS);
    44 
    45 #endif /* _SDL_x11mouse_h */
    46 
    47 /* vi: set ts=4 sw=4 expandtab: */