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
slouken@1931
     1
/*
slouken@1931
     2
    SDL - Simple DirectMedia Layer
slouken@2859
     3
    Copyright (C) 1997-2009 Sam Lantinga
slouken@1931
     4
slouken@1931
     5
    This library is free software; you can redistribute it and/or
slouken@1931
     6
    modify it under the terms of the GNU Lesser General Public
slouken@1931
     7
    License as published by the Free Software Foundation; either
slouken@1931
     8
    version 2.1 of the License, or (at your option) any later version.
slouken@1931
     9
slouken@1931
    10
    This library is distributed in the hope that it will be useful,
slouken@1931
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@1931
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@1931
    13
    Lesser General Public License for more details.
slouken@1931
    14
slouken@1931
    15
    You should have received a copy of the GNU Lesser General Public
slouken@1931
    16
    License along with this library; if not, write to the Free Software
slouken@1931
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
slouken@1931
    18
slouken@1931
    19
    Sam Lantinga
slouken@1931
    20
    slouken@libsdl.org
slouken@1931
    21
*/
slouken@1931
    22
#include "SDL_config.h"
slouken@1931
    23
slouken@1931
    24
#ifndef _SDL_cocoavideo_h
slouken@1931
    25
#define _SDL_cocoavideo_h
slouken@1931
    26
slouken@2788
    27
#include "SDL_opengl.h"
slouken@2788
    28
slouken@1934
    29
#include <ApplicationServices/ApplicationServices.h>
slouken@1931
    30
#include <Cocoa/Cocoa.h>
slouken@1931
    31
slouken@1959
    32
#include "SDL_keysym.h"
slouken@1931
    33
#include "../SDL_sysvideo.h"
slouken@1931
    34
slouken@1931
    35
#include "SDL_cocoaevents.h"
slouken@1931
    36
#include "SDL_cocoakeyboard.h"
slouken@1931
    37
#include "SDL_cocoamodes.h"
slouken@1931
    38
#include "SDL_cocoamouse.h"
slouken@1931
    39
#include "SDL_cocoaopengl.h"
slouken@1931
    40
#include "SDL_cocoawindow.h"
slouken@1931
    41
slouken@1931
    42
/* Private display data */
slouken@1931
    43
slouken@3280
    44
@class SDLTranslatorResponder;
slouken@3280
    45
slouken@1931
    46
typedef struct SDL_VideoData
slouken@1931
    47
{
slouken@1959
    48
    SInt32 osversion;
slouken@1959
    49
    unsigned int modifierFlags;
slouken@1931
    50
    int mouse;
slouken@1931
    51
    int keyboard;
slouken@2303
    52
    void *key_layout;
slouken@3280
    53
    SDLTranslatorResponder *fieldEdit;
slouken@3025
    54
    Uint32 screensaver_activity;
slouken@1931
    55
} SDL_VideoData;
slouken@1931
    56
slouken@1931
    57
#endif /* _SDL_cocoavideo_h */
slouken@1931
    58
slouken@1931
    59
/* vi: set ts=4 sw=4 expandtab: */