src/video/x11/SDL_x11video.h
author Sam Lantinga <slouken@libsdl.org>
Thu, 07 Feb 2008 15:31:09 +0000
changeset 2305 fbe8ff44c519
parent 2295 dbc6d1893869
child 2324 3202e4826c57
permissions -rw-r--r--
First pass of new SDL scancode concept for X11.
slouken@1950
     1
/*
slouken@1950
     2
    SDL - Simple DirectMedia Layer
slouken@1950
     3
    Copyright (C) 1997-2006 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_x11video_h
slouken@1950
    25
#define _SDL_x11video_h
slouken@1950
    26
slouken@1950
    27
#include "../SDL_sysvideo.h"
slouken@1950
    28
slouken@1950
    29
#include <X11/Xlib.h>
slouken@1950
    30
#include <X11/Xutil.h>
slouken@1950
    31
#include <X11/Xatom.h>
slouken@1950
    32
slouken@1950
    33
#if SDL_VIDEO_DRIVER_X11_XINERAMA
slouken@1950
    34
#include "../Xext/extensions/Xinerama.h"
slouken@1950
    35
#endif
slouken@1950
    36
#if SDL_VIDEO_DRIVER_X11_XRANDR
slouken@1950
    37
#include <X11/extensions/Xrandr.h>
slouken@1950
    38
#endif
slouken@1950
    39
#if SDL_VIDEO_DRIVER_X11_VIDMODE
slouken@1950
    40
#include "../Xext/extensions/xf86vmode.h"
slouken@1950
    41
#endif
slouken@1950
    42
#if SDL_VIDEO_DRIVER_X11_XME
slouken@1950
    43
#include "../Xext/extensions/xme.h"
slouken@1950
    44
#endif
slouken@1950
    45
#if SDL_VIDEO_DRIVER_X11_DPMS
slouken@1950
    46
#include <X11/extensions/dpms.h>
slouken@1950
    47
#endif
slouken@1950
    48
slouken@1950
    49
#include "SDL_x11dyn.h"
slouken@1950
    50
slouken@1951
    51
#include "SDL_x11events.h"
slouken@2171
    52
#include "SDL_x11gamma.h"
slouken@1951
    53
#include "SDL_x11keyboard.h"
slouken@1951
    54
#include "SDL_x11modes.h"
slouken@1951
    55
#include "SDL_x11mouse.h"
slouken@1952
    56
#include "SDL_x11opengl.h"
slouken@1951
    57
#include "SDL_x11window.h"
slouken@1951
    58
slouken@1950
    59
/* Private display data */
slouken@1950
    60
slouken@1950
    61
typedef struct SDL_VideoData
slouken@1950
    62
{
slouken@1950
    63
    Display *display;
slouken@1951
    64
    char *classname;
slouken@1951
    65
    XIM im;
slouken@1951
    66
    int screensaver_timeout;
slouken@1951
    67
    BOOL dpms_enabled;
slouken@1951
    68
    int numwindows;
slouken@1951
    69
    SDL_WindowData **windowlist;
slouken@1950
    70
    int mouse;
slouken@1950
    71
    int keyboard;
slouken@1951
    72
    Atom WM_DELETE_WINDOW;
slouken@2305
    73
    SDL_scancode key_layout[256];
slouken@1950
    74
} SDL_VideoData;
slouken@1950
    75
slouken@1950
    76
#endif /* _SDL_x11video_h */
slouken@1950
    77
slouken@1950
    78
/* vi: set ts=4 sw=4 expandtab: */