| 134 | }; |
| 135 | |
| 136 | static KeyboardButton::Enum evdev_translate_key(uint32_t key) |
| 137 | { |
| 138 | switch (key) { |
| 139 | case KEY_BACKSPACE: return KeyboardButton::BACKSPACE; |
| 140 | case KEY_TAB: return KeyboardButton::TAB; |
| 141 | case KEY_SPACE: return KeyboardButton::SPACE; |
| 142 | case KEY_ESC: return KeyboardButton::ESCAPE; |
| 143 | case KEY_ENTER: return KeyboardButton::ENTER; |
| 144 | case KEY_F1: return KeyboardButton::F1; |
| 145 | case KEY_F2: return KeyboardButton::F2; |
| 146 | case KEY_F3: return KeyboardButton::F3; |
| 147 | case KEY_F4: return KeyboardButton::F4; |
| 148 | case KEY_F5: return KeyboardButton::F5; |
| 149 | case KEY_F6: return KeyboardButton::F6; |
| 150 | case KEY_F7: return KeyboardButton::F7; |
| 151 | case KEY_F8: return KeyboardButton::F8; |
| 152 | case KEY_F9: return KeyboardButton::F9; |
| 153 | case KEY_F10: return KeyboardButton::F10; |
| 154 | case KEY_F11: return KeyboardButton::F11; |
| 155 | case KEY_F12: return KeyboardButton::F12; |
| 156 | case KEY_HOME: return KeyboardButton::HOME; |
| 157 | case KEY_LEFT: return KeyboardButton::LEFT; |
| 158 | case KEY_UP: return KeyboardButton::UP; |
| 159 | case KEY_RIGHT: return KeyboardButton::RIGHT; |
| 160 | case KEY_DOWN: return KeyboardButton::DOWN; |
| 161 | case KEY_PAGEUP: return KeyboardButton::PAGE_UP; |
| 162 | case KEY_PAGEDOWN: return KeyboardButton::PAGE_DOWN; |
| 163 | case KEY_INSERT: return KeyboardButton::INS; |
| 164 | case KEY_DELETE: return KeyboardButton::DEL; |
| 165 | case KEY_END: return KeyboardButton::END; |
| 166 | case KEY_SYSRQ: return KeyboardButton::PRINT_SCREEN; |
| 167 | case KEY_SCROLLLOCK: return KeyboardButton::SCROLL_LOCK; |
| 168 | case KEY_PAUSE: return KeyboardButton::BREAK; |
| 169 | case KEY_BREAK: return KeyboardButton::BREAK; |
| 170 | case KEY_LEFTSHIFT: return KeyboardButton::SHIFT_LEFT; |
| 171 | case KEY_RIGHTSHIFT: return KeyboardButton::SHIFT_RIGHT; |
| 172 | case KEY_LEFTCTRL: return KeyboardButton::CTRL_LEFT; |
| 173 | case KEY_RIGHTCTRL: return KeyboardButton::CTRL_RIGHT; |
| 174 | case KEY_CAPSLOCK: return KeyboardButton::CAPS_LOCK; |
| 175 | case KEY_LEFTALT: return KeyboardButton::ALT_LEFT; |
| 176 | case KEY_RIGHTALT: return KeyboardButton::ALT_RIGHT; |
| 177 | case KEY_LEFTMETA: return KeyboardButton::SUPER_LEFT; |
| 178 | case KEY_RIGHTMETA: return KeyboardButton::SUPER_RIGHT; |
| 179 | case KEY_NUMLOCK: return KeyboardButton::NUM_LOCK; |
| 180 | case KEY_KPENTER: return KeyboardButton::NUMPAD_ENTER; |
| 181 | case KEY_KPDOT: return KeyboardButton::NUMPAD_DELETE; |
| 182 | case KEY_KPASTERISK: return KeyboardButton::NUMPAD_MULTIPLY; |
| 183 | case KEY_KPPLUS: return KeyboardButton::NUMPAD_ADD; |
| 184 | case KEY_KPMINUS: return KeyboardButton::NUMPAD_SUBTRACT; |
| 185 | case KEY_KPSLASH: return KeyboardButton::NUMPAD_DIVIDE; |
| 186 | case KEY_KP0: return KeyboardButton::NUMPAD_0; |
| 187 | case KEY_KP1: return KeyboardButton::NUMPAD_1; |
| 188 | case KEY_KP2: return KeyboardButton::NUMPAD_2; |
| 189 | case KEY_KP3: return KeyboardButton::NUMPAD_3; |
| 190 | case KEY_KP4: return KeyboardButton::NUMPAD_4; |
| 191 | case KEY_KP5: return KeyboardButton::NUMPAD_5; |
| 192 | case KEY_KP6: return KeyboardButton::NUMPAD_6; |
| 193 | case KEY_KP7: return KeyboardButton::NUMPAD_7; |
no outgoing calls
no test coverage detected