Welcome to mirror list, hosted at ThFree Co, Russian Federation.

SDL_keyboard.h « SDL2 « include « sdlew « extern - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c2517b4f66549a132996d13c52be0a1005740c62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79

#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