VSF Documented
SDL_keyboard.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright(C)2009-2022 by VSF Team *
3 * *
4 * Licensed under the Apache License, Version 2.0 (the "License"); *
5 * you may not use this file except in compliance with the License. *
6 * You may obtain a copy of the License at *
7 * *
8 * http://www.apache.org/licenses/LICENSE-2.0 *
9 * *
10 * Unless required by applicable law or agreed to in writing, software *
11 * distributed under the License is distributed on an "AS IS" BASIS, *
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13 * See the License for the specific language governing permissions and *
14 * limitations under the License. *
15 * *
16 ****************************************************************************/
17
18#ifndef __VSF_SDL2_KEYBOARD_H__
19#define __VSF_SDL2_KEYBOARD_H__
20
21/*============================ INCLUDES ======================================*/
22
23#include "../../vsf_sdl2_cfg.h"
24
25#if VSF_USE_SDL2 == ENABLED
26
27#include "SDL_stdinc.h"
28#include "SDL_keycode.h"
29
30#include "begin_code.h"
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
36/*============================ MACROS ========================================*/
37/*============================ MACROFIED FUNCTIONS ===========================*/
38
39#if VSF_SDL_CFG_WRAPPER == ENABLED
40#define SDL_GetKeyboardState VSF_SDL_WRAPPER(SDL_GetKeyboardState)
41#endif
42
43#define SDL_StartTextInput()
44#define SDL_StopTextInput()
45
46/*============================ TYPES =========================================*/
47
48typedef struct SDL_Keysym {
54
55/*============================ GLOBAL VARIABLES ==============================*/
56/*============================ LOCAL VARIABLES ===============================*/
57/*============================ PROTOTYPES ====================================*/
58
59extern const uint8_t * SDL_GetKeyboardState(int *numkeys);
60
61#ifdef __cplusplus
62}
63#endif
64#include "close_code.h"
65
66#endif // VSF_USE_SDL2
67#endif // __VSF_SDL2_KEYBOARD_H__
68/* EOF */
#define SDL_GetKeyboardState
Definition SDL_keyboard.h:40
SDL_Scancode
Definition SDL_keycode.h:38
int32_t SDL_Keycode
Definition SDL_keycode.h:188
unsigned short uint16_t
Definition stdint.h:7
unsigned char uint8_t
Definition stdint.h:5
Definition SDL_keyboard.h:48
SDL_Keycode sym
Definition SDL_keyboard.h:50
uint16_t unicode
Definition SDL_keyboard.h:52
SDL_Scancode scancode
Definition SDL_keyboard.h:49
uint16_t mod
Definition SDL_keyboard.h:51