src/video/cocoa/SDL_cocoavideo.h
author Sam Lantinga
Sat, 19 Sep 2009 13:29:40 +0000
changeset 3280 00cace2d9080
parent 3025 54fac87e1f34
child 3676 1ab77e93a6c9
permissions -rw-r--r--
Merged a cleaned up version of Jiang's code changes from Google Summer of Code 2009
     1 /*
     2     SDL - Simple DirectMedia Layer
     3     Copyright (C) 1997-2009 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_cocoavideo_h
    25 #define _SDL_cocoavideo_h
    26 
    27 #include "SDL_opengl.h"
    28 
    29 #include <ApplicationServices/ApplicationServices.h>
    30 #include <Cocoa/Cocoa.h>
    31 
    32 #include "SDL_keysym.h"
    33 #include "../SDL_sysvideo.h"
    34 
    35 #include "SDL_cocoaevents.h"
    36 #include "SDL_cocoakeyboard.h"
    37 #include "SDL_cocoamodes.h"
    38 #include "SDL_cocoamouse.h"
    39 #include "SDL_cocoaopengl.h"
    40 #include "SDL_cocoawindow.h"
    41 
    42 /* Private display data */
    43 
    44 @class SDLTranslatorResponder;
    45 
    46 typedef struct SDL_VideoData
    47 {
    48     SInt32 osversion;
    49     unsigned int modifierFlags;
    50     int mouse;
    51     int keyboard;
    52     void *key_layout;
    53     SDLTranslatorResponder *fieldEdit;
    54     Uint32 screensaver_activity;
    55 } SDL_VideoData;
    56 
    57 #endif /* _SDL_cocoavideo_h */
    58 
    59 /* vi: set ts=4 sw=4 expandtab: */