blender/extern/sdlew/include/SDL2/SDL_keyboard.h
Sergey Sharybin 80d1d624d3 Support dynamic loading of SDL libraries
This is mainly to address old issue when one need to have SDL library installed
in order to use our official builds. Some hip distros already installs SDL,
but it's not quite the same across all the variety of the distros.

We also now switching to SDL-2.0, most of the distros have it in repositories
already, so it shouldn't be huge deal to install it if needed.

Reviewers: campbellbarton

Reviewed By: campbellbarton

Differential Revision: https://developer.blender.org/D878
2014-11-17 17:43:18 +05:00

80 lines
2.2 KiB
C

#ifndef _SDL_keyboard_h
#define _SDL_keyboard_h
#include "SDL_stdinc.h"
#include "SDL_error.h"
#include "SDL_keycode.h"
#include "SDL_video.h"
#include "begin_code.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct SDL_Keysym
{
SDL_Scancode scancode;
SDL_Keycode sym;
Uint16 mod;
Uint32 unused;
} SDL_Keysym;
typedef SDL_Window * SDLCALL tSDL_GetKeyboardFocus(void);
typedef const Uint8 * SDLCALL tSDL_GetKeyboardState(int *numkeys);
typedef SDL_Keymod SDLCALL tSDL_GetModState(void);
typedef void SDLCALL tSDL_SetModState(SDL_Keymod modstate);
typedef SDL_Keycode SDLCALL tSDL_GetKeyFromScancode(SDL_Scancode scancode);
typedef SDL_Scancode SDLCALL tSDL_GetScancodeFromKey(SDL_Keycode key);
typedef const char * SDLCALL tSDL_GetScancodeName(SDL_Scancode scancode);
typedef SDL_Scancode SDLCALL tSDL_GetScancodeFromName(const char *name);
typedef const char * SDLCALL tSDL_GetKeyName(SDL_Keycode key);
typedef SDL_Keycode SDLCALL tSDL_GetKeyFromName(const char *name);
typedef void SDLCALL tSDL_StartTextInput(void);
typedef SDL_bool SDLCALL tSDL_IsTextInputActive(void);
typedef void SDLCALL tSDL_StopTextInput(void);
typedef void SDLCALL tSDL_SetTextInputRect(SDL_Rect *rect);
typedef SDL_bool SDLCALL tSDL_HasScreenKeyboardSupport(void);
typedef SDL_bool SDLCALL tSDL_IsScreenKeyboardShown(SDL_Window *window);
extern tSDL_GetKeyboardFocus *SDL_GetKeyboardFocus;
extern tSDL_GetKeyboardState *SDL_GetKeyboardState;
extern tSDL_GetModState *SDL_GetModState;
extern tSDL_SetModState *SDL_SetModState;
extern tSDL_GetKeyFromScancode *SDL_GetKeyFromScancode;
extern tSDL_GetScancodeFromKey *SDL_GetScancodeFromKey;
extern tSDL_GetScancodeName *SDL_GetScancodeName;
extern tSDL_GetScancodeFromName *SDL_GetScancodeFromName;
extern tSDL_GetKeyName *SDL_GetKeyName;
extern tSDL_GetKeyFromName *SDL_GetKeyFromName;
extern tSDL_StartTextInput *SDL_StartTextInput;
extern tSDL_IsTextInputActive *SDL_IsTextInputActive;
extern tSDL_StopTextInput *SDL_StopTextInput;
extern tSDL_SetTextInputRect *SDL_SetTextInputRect;
extern tSDL_HasScreenKeyboardSupport *SDL_HasScreenKeyboardSupport;
extern tSDL_IsScreenKeyboardShown *SDL_IsScreenKeyboardShown;
#ifdef __cplusplus
}
#endif
#include "close_code.h"
#endif