Vuo  2.0.0
VuoKey.h
Go to the documentation of this file.
1 
10 #pragma once
11 
13 typedef const struct VuoList_VuoKey_struct { void *l; } * VuoList_VuoKey;
14 #define VuoList_VuoKey_TYPE_DEFINED
15 
29 typedef enum {
30  VuoKey_Any,
31  VuoKey_A,
32  VuoKey_S,
33  VuoKey_D,
34  VuoKey_F,
35  VuoKey_H,
36  VuoKey_G,
37  VuoKey_Z,
38  VuoKey_X,
39  VuoKey_C,
40  VuoKey_V,
41  VuoKey_B,
42  VuoKey_Q,
43  VuoKey_W,
44  VuoKey_E,
45  VuoKey_R,
46  VuoKey_Y,
47  VuoKey_T,
48  VuoKey_1,
49  VuoKey_2,
50  VuoKey_3,
51  VuoKey_4,
52  VuoKey_6,
53  VuoKey_5,
54  VuoKey_Equal,
55  VuoKey_9,
56  VuoKey_7,
57  VuoKey_Minus,
58  VuoKey_8,
59  VuoKey_0,
60  VuoKey_RightBracket,
61  VuoKey_O,
62  VuoKey_U,
63  VuoKey_LeftBracket,
64  VuoKey_I,
65  VuoKey_P,
66  VuoKey_L,
67  VuoKey_J,
68  VuoKey_Quote,
69  VuoKey_K,
70  VuoKey_Semicolon,
71  VuoKey_Backslash,
72  VuoKey_Comma,
73  VuoKey_Slash,
74  VuoKey_N,
75  VuoKey_M,
76  VuoKey_Period,
77  VuoKey_Grave,
78  VuoKey_KeypadDecimal,
79  VuoKey_KeypadMultiply,
80  VuoKey_KeypadPlus,
81  VuoKey_KeypadClear,
82  VuoKey_KeypadDivide,
83  VuoKey_KeypadEnter,
84  VuoKey_KeypadMinus,
85  VuoKey_KeypadEquals,
86  VuoKey_Keypad0,
87  VuoKey_Keypad1,
88  VuoKey_Keypad2,
89  VuoKey_Keypad3,
90  VuoKey_Keypad4,
91  VuoKey_Keypad5,
92  VuoKey_Keypad6,
93  VuoKey_Keypad7,
94  VuoKey_Keypad8,
95  VuoKey_Keypad9,
96  VuoKey_Return,
97  VuoKey_Tab,
98  VuoKey_Space,
99  VuoKey_Delete,
100  VuoKey_Escape,
101  VuoKey_Command,
102  VuoKey_Shift,
103  VuoKey_CapsLock,
104  VuoKey_Option,
105  VuoKey_Control,
106  VuoKey_RightShift,
107  VuoKey_RightOption,
108  VuoKey_RightControl,
109  VuoKey_Function,
110  VuoKey_F17,
111  VuoKey_VolumeUp,
112  VuoKey_VolumeDown,
113  VuoKey_Mute,
114  VuoKey_F18,
115  VuoKey_F19,
116  VuoKey_F20,
117  VuoKey_F5,
118  VuoKey_F6,
119  VuoKey_F7,
120  VuoKey_F3,
121  VuoKey_F8,
122  VuoKey_F9,
123  VuoKey_F11,
124  VuoKey_F13,
125  VuoKey_F16,
126  VuoKey_F14,
127  VuoKey_F10,
128  VuoKey_F12,
129  VuoKey_F15,
130  VuoKey_Help,
131  VuoKey_Home,
132  VuoKey_PageUp,
133  VuoKey_ForwardDelete,
134  VuoKey_F4,
135  VuoKey_End,
136  VuoKey_F2,
137  VuoKey_PageDown,
138  VuoKey_F1,
139  VuoKey_LeftArrow,
140  VuoKey_RightArrow,
141  VuoKey_DownArrow,
142  VuoKey_UpArrow,
143  VuoKey_Yen,
144  VuoKey_Underscore,
145  VuoKey_KeypadComma,
146  VuoKey_Eisu,
147  VuoKey_Kana
148 } VuoKey;
149 
151 struct json_object * VuoKey_getJson(const VuoKey value);
153 char * VuoKey_getSummary(const VuoKey value);
154 
155 char * VuoKey_getCharactersForMacVirtualKeyCode(unsigned short keyCode, unsigned long flags, unsigned int *deadKeyState);
156 VuoKey VuoKey_makeFromMacVirtualKeyCode(unsigned short keyCode);
157 bool VuoKey_doesMacVirtualKeyCodeMatch(unsigned short keyCode, VuoKey key);
158 
160 
163 VuoKey VuoKey_makeFromString(const char *str);
164 char * VuoKey_getString(const VuoKey value);
166