libtui
Loading...
Searching...
No Matches
libtui_keyboard.h
Go to the documentation of this file.
1#ifndef LIBTUI_KEYBOARD_H
2#define LIBTUI_KEYBOARD_H
3
4#include <stdbool.h>
5
18 KEY_BACKSPACE = 8,
19 KEY_TAB = 9,
20 KEY_ESC = 27,
21
22 KEY_SPACE = 32,
23 KEY_SINGLE_QUOTE = 39,
24 KEY_ASTERISK = 42,
25 KEY_PLUS = 43,
26 KEY_COMMA = 44,
27 KEY_MINUS = 45,
28 KEY_PERIOD = 46,
29 KEY_SLASH = 47,
30 KEY_0 = 48,
31 KEY_1 = 49,
32 KEY_2 = 50,
33 KEY_3 = 51,
34 KEY_4 = 52,
35 KEY_5 = 53,
36 KEY_6 = 54,
37 KEY_7 = 55,
38 KEY_8 = 56,
39 KEY_9 = 57,
40 KEY_SEMICOLON = 59,
41 KEY_EQUAL = 61,
42 KEY_OPEN_BRACKET = 91,
43 KEY_BACKSLASH = 92,
44 KEY_CLOSE_BRACKET = 93,
45 KEY_BACKQUOTE = 96,
46 KEY_A = 97,
47 KEY_B = 98,
48 KEY_C = 99,
49 KEY_D = 100,
50 KEY_E = 101,
51 KEY_F = 102,
52 KEY_G = 103,
53 KEY_H = 104,
54 KEY_I = 105,
55 KEY_J = 106,
56 KEY_K = 107,
57 KEY_L = 108,
58 KEY_M = 109,
59 KEY_N = 110,
60 KEY_O = 111,
61 KEY_P = 112,
62 KEY_Q = 113,
63 KEY_R = 114,
64 KEY_S = 115,
65 KEY_T = 116,
66 KEY_U = 117,
67 KEY_V = 118,
68 KEY_W = 119,
69 KEY_X = 120,
70 KEY_Y = 121,
71 KEY_Z = 122,
72 KEY_DEL = 127,
73};
74
81
88
94
95#endif
LIBTUI_KEYCODE
Complete enum of keycodes with the referring ascii codes.
Definition libtui_keyboard.h:17
bool libtui_keyboard_is_kb_hit(void)
Returns true if a key is pressed.
Definition libtui_keyboard.c:9
enum LIBTUI_KEYCODE libtui_keyboard_get_key(void)
Returns the pressed key.
Definition libtui_keyboard.c:27