src/video/x11/SDL_x11modes.h
author Bob Pendleton <bob@pendleton.com>
Fri, 07 Mar 2008 20:54:11 +0000
changeset 2325 c7bcf84ba1b9
parent 1951 7177581dc9fa
child 2859 99210400e8b9
permissions -rw-r--r--
Next version of internationalized input for X11. On my machine (famous last words :-) with a US English keyboard and locale I can compose ` and e and get a text
input event with the character รจ. You still get the keypress keyrelease events for the individual keys that go into composing the character.
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_x11modes_h
slouken@1950
    25
#define _SDL_x11modes_h
slouken@1950
    26
slouken@1950
    27
typedef struct
slouken@1950
    28
{
slouken@1950
    29
    int screen;
slouken@1950
    30
    Visual *visual;
slouken@1951
    31
    int depth;
slouken@1950
    32
} SDL_DisplayData;
slouken@1950
    33
slouken@1950
    34
//typedef struct
slouken@1950
    35
//{
slouken@1950
    36
//    TCHAR DeviceName[32];
slouken@1950
    37
//    DEVMODE DeviceMode;
slouken@1950
    38
//} SDL_DisplayModeData;
slouken@1950
    39
slouken@1950
    40
extern void X11_InitModes(_THIS);
slouken@1950
    41
extern void X11_GetDisplayModes(_THIS);
slouken@1950
    42
extern int X11_SetDisplayMode(_THIS, SDL_DisplayMode * mode);
slouken@1950
    43
extern void X11_QuitModes(_THIS);
slouken@1950
    44
slouken@1950
    45
#endif /* _SDL_x11modes_h */
slouken@1950
    46
slouken@1950
    47
/* vi: set ts=4 sw=4 expandtab: */