Skip to main content

limnus_basic_input/
key.rs

1/*
2 * Copyright (c) Peter Bjorklund. All rights reserved. https://github.com/swamp/limnus
3 * Licensed under the MIT License. See LICENSE in the project root for license information.
4 */
5#[derive(Debug, Hash, Clone, Copy, Eq, PartialEq)]
6pub enum KeyCode {
7    Backquote,
8    Backslash,
9    BracketLeft,
10    BracketRight,
11    Comma,
12
13    // DIGITS
14    Digit0,
15    Digit1,
16    Digit2,
17    Digit3,
18    Digit4,
19    Digit5,
20    Digit6,
21    Digit7,
22    Digit8,
23    Digit9,
24
25    Equal,
26
27    // A-Z
28    KeyA,
29    KeyB,
30    KeyC,
31    KeyD,
32    KeyE,
33    KeyF,
34    KeyG,
35    KeyH,
36    KeyI,
37    KeyJ,
38    KeyK,
39    KeyL,
40    KeyM,
41    KeyN,
42    KeyO,
43    KeyP,
44    KeyQ,
45    KeyR,
46    KeyS,
47    KeyT,
48    KeyU,
49    KeyV,
50    KeyW,
51    KeyX,
52    KeyY,
53    KeyZ,
54
55    Minus,
56    Period,
57    Quote,
58    Semicolon,
59    Slash,
60
61    AltLeft,
62    AltRight,
63    Backspace,
64    CapsLock,
65
66    ContextMenu,
67    ControlLeft,
68    ControlRight,
69    Enter,
70    SuperLeft,
71    SuperRight,
72    ShiftLeft,
73    ShiftRight,
74    Space,
75    Tab,
76    Delete,
77    End,
78    Help,
79    Home,
80    Insert,
81    PageDown,
82    PageUp,
83    ArrowDown,
84    ArrowLeft,
85    ArrowRight,
86    ArrowUp,
87    NumLock,
88
89    Escape,
90
91    PrintScreen,
92    ScrollLock,
93    Pause,
94
95    F1,
96    F2,
97    F3,
98    F4,
99    F5,
100    F6,
101    F7,
102    F8,
103    F9,
104    F10,
105    F11,
106    F12,
107}