RetroArch
keyboard_event_apple.h
Go to the documentation of this file.
1 /*
2 Taken from https://github.com/depp/keycode, distributed with the following license:
3 
4 Copyright 2011-2012 Dietrich Epp <[email protected]>
5 All rights reserved.
6 
7 Redistribution and use in source and binary forms, with or without
8 modification, are permitted provided that the following conditions are
9 met:
10 
11  1. Redistributions of source code must retain the above copyright
12  notice, this list of conditions and the following disclaimer.
13 
14  2. Redistributions in binary form must reproduce the above
15  copyright notice, this list of conditions and the following
16  disclaimer in the documentation and/or other materials provided
17  with the distribution.
18 
19 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */
31 
32 /* This file is automatically generated by keycode.py. */
33 #ifndef KEYCODE_KEYCODE_H
34 #define KEYCODE_KEYCODE_H
35 
36 #include <stdint.h>
37 
38 #include <retro_common_api.h>
39 
40 #ifndef MAX_KEYS
41 #define MAX_KEYS 256
42 #endif
43 
44 enum
45 {
46  KEY_A = 4,
47  KEY_B = 5,
48  KEY_C = 6,
49  KEY_D = 7,
50  KEY_E = 8,
51  KEY_F = 9,
52  KEY_G = 10,
53  KEY_H = 11,
54  KEY_I = 12,
55  KEY_J = 13,
56  KEY_K = 14,
57  KEY_L = 15,
58  KEY_M = 16,
59  KEY_N = 17,
60  KEY_O = 18,
61  KEY_P = 19,
62  KEY_Q = 20,
63  KEY_R = 21,
64  KEY_S = 22,
65  KEY_T = 23,
66  KEY_U = 24,
67  KEY_V = 25,
68  KEY_W = 26,
69  KEY_X = 27,
70  KEY_Y = 28,
71  KEY_Z = 29,
72  KEY_1 = 30,
73  KEY_2 = 31,
74  KEY_3 = 32,
75  KEY_4 = 33,
76  KEY_5 = 34,
77  KEY_6 = 35,
78  KEY_7 = 36,
79  KEY_8 = 37,
80  KEY_9 = 38,
81  KEY_0 = 39,
82  KEY_Enter = 40,
83  KEY_Escape = 41,
84  KEY_Delete = 42,
85  KEY_Tab = 43,
86  KEY_Space = 44,
87  KEY_Minus = 45,
88  KEY_Equals = 46,
93  KEY_Quote = 52,
94  KEY_Grave = 53,
95  KEY_Comma = 54,
96  KEY_Period = 55,
97  KEY_Slash = 56,
99  KEY_F1 = 58,
100  KEY_F2 = 59,
101  KEY_F3 = 60,
102  KEY_F4 = 61,
103  KEY_F5 = 62,
104  KEY_F6 = 63,
105  KEY_F7 = 64,
106  KEY_F8 = 65,
107  KEY_F9 = 66,
108  KEY_F10 = 67,
109  KEY_F11 = 68,
110  KEY_F12 = 69,
113  KEY_Pause = 72,
115  KEY_Home = 74,
118  KEY_End = 77,
120  KEY_Right = 79,
121  KEY_Left = 80,
122  KEY_Down = 81,
123  KEY_Up = 82,
125  KP_Divide = 84,
128  KP_Add = 87,
129  KP_Enter = 88,
130  KP_1 = 89,
131  KP_2 = 90,
132  KP_3 = 91,
133  KP_4 = 92,
134  KP_5 = 93,
135  KP_6 = 94,
136  KP_7 = 95,
137  KP_8 = 96,
138  KP_9 = 97,
139  KP_0 = 98,
140  KP_Point = 99,
142  KP_Equals = 103,
143  KEY_F13 = 104,
144  KEY_F14 = 105,
145  KEY_F15 = 106,
146  KEY_F16 = 107,
147  KEY_F17 = 108,
148  KEY_F18 = 109,
149  KEY_F19 = 110,
150  KEY_F20 = 111,
151  KEY_F21 = 112,
152  KEY_F22 = 113,
153  KEY_F23 = 114,
154  KEY_F24 = 115,
155  KEY_Help = 117,
156  KEY_Menu = 118,
159  KEY_LeftAlt = 226,
160  KEY_LeftGUI = 227,
165 };
166 
168 
170  unsigned code, uint32_t character, uint32_t mod, unsigned device);
171 
173 
175 
177 
178 #endif
Definition: keyboard_event_apple.h:155
Definition: keyboard_event_apple.h:130
Definition: keyboard_event_apple.h:148
Definition: keyboard_event_apple.h:76
Definition: keyboard_event_apple.h:154
Definition: keyboard_event_apple.h:94
Definition: keyboard_event_apple.h:86
Definition: keyboard_event_apple.h:121
Definition: keyboard_event_apple.h:159
Definition: keyboard_event_apple.h:46
#define RETRO_BEGIN_DECLS
Definition: retro_common_api.h:41
Definition: keyboard_event_apple.h:109
Definition: keyboard_event_apple.h:115
Definition: keyboard_event_apple.h:52
Definition: keyboard_event_apple.h:108
Definition: keyboard_event_apple.h:81
Definition: keyboard_event_apple.h:92
Definition: keyboard_event_apple.h:91
Definition: keyboard_event_apple.h:138
Definition: keyboard_event_apple.h:50
Definition: keyboard_event_apple.h:152
Definition: keyboard_event_apple.h:110
Definition: keyboard_event_apple.h:164
Definition: keyboard_event_apple.h:129
RETRO_BEGIN_DECLS void apple_input_keyboard_event(bool down, unsigned code, uint32_t character, uint32_t mod, unsigned device)
Definition: keyboard_event_apple.c:274
Definition: keyboard_event_apple.h:72
Definition: keyboard_event_apple.h:157
Definition: keyboard_event_apple.h:160
Definition: keyboard_event_apple.h:47
Definition: keyboard_event_apple.h:61
uint32_t apple_key_state[MAX_KEYS]
Definition: keyboard_event_apple.c:54
Definition: keyboard_event_apple.h:54
Definition: keyboard_event_apple.h:64
Definition: keyboard_event_apple.h:68
Definition: keyboard_event_apple.h:131
Definition: keyboard_event_apple.h:132
Definition: keyboard_event_apple.h:78
Definition: keyboard_event_apple.h:122
Definition: keyboard_event_apple.h:143
Definition: keyboard_event_apple.h:97
Definition: keyboard_event_apple.h:104
Definition: keyboard_event_apple.h:105
Definition: keyboard_event_apple.h:85
Definition: keyboard_event_apple.h:134
Definition: keyboard_event_apple.h:123
Definition: keyboard_event_apple.h:125
Definition: keyboard_event_apple.h:87
#define MAX_KEYS
Definition: keyboard_event_apple.h:41
Definition: keyboard_event_apple.h:113
Definition: keyboard_event_apple.h:74
Definition: keyboard_event_apple.h:51
Definition: keyboard_event_apple.h:153
Definition: keyboard_event_apple.h:100
Definition: keyboard_event_apple.h:112
Definition: keyboard_event_apple.h:144
Definition: keyboard_event_apple.h:119
Definition: keyboard_event_apple.h:124
Definition: keyboard_event_apple.h:151
Definition: keyboard_event_apple.h:106
Definition: keyboard_event_apple.h:126
Definition: keyboard_event_apple.h:133
Definition: keyboard_event_apple.h:99
Definition: keyboard_event_apple.h:150
Definition: keyboard_event_apple.h:116
Definition: keyboard_event_apple.h:135
Definition: keyboard_event_apple.h:82
Definition: keyboard_event_apple.h:66
Definition: keyboard_event_apple.h:83
Definition: keyboard_event_apple.h:136
Definition: keyboard_event_apple.h:117
int32_t apple_keyboard_find_any_key(void)
Definition: keyboard_event_apple.c:308
Definition: keyboard_event_apple.h:95
Definition: keyboard_event_apple.h:98
Definition: keyboard_event_apple.h:63
Definition: keyboard_event_apple.h:56
Definition: keyboard_event_apple.h:84
Definition: keyboard_event_apple.h:120
Definition: keyboard_event_apple.h:80
Definition: keyboard_event_apple.h:96
Definition: keyboard_event_apple.h:79
Definition: keyboard_event_apple.h:49
Definition: keyboard_event_apple.h:57
Definition: inftrees.h:27
Definition: keyboard_event_apple.h:139
signed int int32_t
Definition: stdint.h:123
Definition: keyboard_event_apple.h:162
#define RETRO_END_DECLS
Definition: retro_common_api.h:42
Definition: keyboard_event_apple.h:62
Definition: keyboard_event_apple.h:147
Definition: keyboard_event_apple.h:88
Definition: keyboard_event_apple.h:102
Definition: keyboard_event_apple.h:118
Definition: keyboard_event_apple.h:137
Definition: keyboard_event_apple.h:149
Definition: keyboard_event_apple.h:140
Definition: keyboard_event_apple.h:107
Definition: keyboard_event_apple.h:101
Definition: keyboard_event_apple.h:158
Definition: keyboard_event_apple.h:146
Definition: keyboard_event_apple.h:145
Definition: keyboard_event_apple.h:48
Definition: keyboard_event_apple.h:128
Definition: keyboard_event_apple.h:103
Definition: keyboard_event_apple.h:161
Definition: keyboard_event_apple.h:114
Definition: keyboard_event_apple.h:89
Definition: keyboard_event_apple.h:75
Definition: keyboard_event_apple.h:69
Definition: keyboard_event_apple.h:65
Definition: keyboard_event_apple.h:53
Definition: keyboard_event_apple.h:60
Definition: keyboard_event_apple.h:58
Definition: keyboard_event_apple.h:70
Definition: keyboard_event_apple.h:55
Definition: keyboard_event_apple.h:67
Definition: keyboard_event_apple.h:127
struct nk_device device
Definition: nk_common.c:44
bool down
Definition: connect_wiiupro.c:51
Definition: keyboard_event_apple.h:93
Definition: keyboard_event_apple.h:142
Definition: keyboard_event_apple.h:156
Definition: keyboard_event_apple.h:73
unsigned int uint32_t
Definition: stdint.h:126
Definition: keyboard_event_apple.h:59
Definition: keyboard_event_apple.h:90
Definition: keyboard_event_apple.h:71
Definition: keyboard_event_apple.h:163
Definition: keyboard_event_apple.h:141
Definition: keyboard_event_apple.h:111
Definition: keyboard_event_apple.h:77