include/SDL_system.h
author Sam Lantinga <slouken@libsdl.org>
Sun, 14 Oct 2012 01:30:42 -0700
changeset 6588 f739b8044c26
parent 6392 fa7eb111f994
child 6630 55910871076b
permissions -rw-r--r--
Allow events at startup so we don't lose important events like SDL_DROPFILE
slouken@6342
     1
/*
slouken@6342
     2
  Simple DirectMedia Layer
slouken@6342
     3
  Copyright (C) 1997-2012 Sam Lantinga <slouken@libsdl.org>
slouken@6342
     4
slouken@6342
     5
  This software is provided 'as-is', without any express or implied
slouken@6342
     6
  warranty.  In no event will the authors be held liable for any damages
slouken@6342
     7
  arising from the use of this software.
slouken@6342
     8
slouken@6342
     9
  Permission is granted to anyone to use this software for any purpose,
slouken@6342
    10
  including commercial applications, and to alter it and redistribute it
slouken@6342
    11
  freely, subject to the following restrictions:
slouken@6342
    12
slouken@6342
    13
  1. The origin of this software must not be misrepresented; you must not
slouken@6342
    14
     claim that you wrote the original software. If you use this software
slouken@6342
    15
     in a product, an acknowledgment in the product documentation would be
slouken@6342
    16
     appreciated but is not required.
slouken@6342
    17
  2. Altered source versions must be plainly marked as such, and must not be
slouken@6342
    18
     misrepresented as being the original software.
slouken@6342
    19
  3. This notice may not be removed or altered from any source distribution.
slouken@6342
    20
*/
slouken@6342
    21
slouken@6342
    22
/**
slouken@6342
    23
 *  \file SDL_system.h
slouken@6342
    24
 *  
slouken@6342
    25
 *  Include file for platform specific SDL API functions
slouken@6342
    26
 */
slouken@6342
    27
slouken@6342
    28
#ifndef _SDL_system_h
slouken@6342
    29
#define _SDL_system_h
slouken@6342
    30
slouken@6342
    31
#include "SDL_stdinc.h"
slouken@6342
    32
slouken@6392
    33
#if __IPHONEOS__
slouken@6392
    34
#include "SDL_video.h"
slouken@6392
    35
#include "SDL_keyboard.h"
slouken@6392
    36
#endif
slouken@6392
    37
slouken@6342
    38
#include "begin_code.h"
slouken@6342
    39
/* Set up for C function definitions, even when using C++ */
slouken@6342
    40
#ifdef __cplusplus
slouken@6342
    41
/* *INDENT-OFF* */
slouken@6342
    42
extern "C" {
slouken@6342
    43
/* *INDENT-ON* */
slouken@6342
    44
#endif
slouken@6342
    45
slouken@6342
    46
#if __IPHONEOS__
slouken@6342
    47
slouken@6342
    48
extern DECLSPEC int SDLCALL SDL_iPhoneSetAnimationCallback(SDL_Window * window, int interval, void (*callback)(void*), void *callbackParam);
slouken@6346
    49
extern DECLSPEC void SDLCALL SDL_iPhoneSetEventPump(SDL_bool enabled);
slouken@6342
    50
slouken@6392
    51
#define SDL_iPhoneKeyboardShow  SDL_ShowScreenKeyboard
slouken@6392
    52
#define SDL_iPhoneKeyboardHide  SDL_HideScreenKeyboard
slouken@6392
    53
#define SDL_iPhoneKeyboardToggle    SDL_ToggleScreenKeyboard
slouken@6392
    54
#define SDL_iPhoneKeyboardIsShown   SDL_IsScreenKeyboardShown
slouken@6342
    55
slouken@6342
    56
#endif
slouken@6342
    57
slouken@6342
    58
/* Ends C function definitions when using C++ */
slouken@6342
    59
#ifdef __cplusplus
slouken@6342
    60
/* *INDENT-OFF* */
slouken@6342
    61
}
slouken@6342
    62
/* *INDENT-ON* */
slouken@6342
    63
#endif
slouken@6342
    64
#include "close_code.h"
slouken@6342
    65
slouken@6342
    66
#endif /* _SDL_system_h */
slouken@6342
    67
slouken@6342
    68
/* vi: set ts=4 sw=4 expandtab: */