src/video/x11/SDL_x11mouse.h
author Sam Lantinga <slouken@libsdl.org>
Tue, 15 Dec 2009 08:11:06 +0000
changeset 3565 f43c8f688f77
parent 2940 b93965a16fe0
child 3697 f7b03b6838cb
permissions -rw-r--r--
Fixed bug #906

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