Debian Codegraph @

Source/Core/VideoCommon/OnScreenUIKeyMap.h

raw symbols SCIP
1 // Copyright 2023 Dolphin Emulator Project
2 // SPDX-License-Identifier: GPL-2.0-or-later
3
4 #pragma once
5
6 #include "Common/EnumMap.h"
7
8 // The main point of this is to allow other parts of dolphin to set ImGui's key map without
9 // having to import ImGui headers.
10 // But the idea is that it can be expanded in the future with more keys to support more things.
11 enum class DolphinKey
12 {
13 Tab,
14 LeftArrow,
15 RightArrow,
16 UpArrow,
17 DownArrow,
18 PageUp,
19 PageDown,
20 Home,
21 End,
22 Insert,
23 Delete,
24 Backspace,
25 Space,
26 Enter,
27 Escape,
28 KeyPadEnter,
29 A, // for text edit CTRL+A: select all
30 C, // for text edit CTRL+C: copy
31 V, // for text edit CTRL+V: paste
32 X, // for text edit CTRL+X: cut
33 Y, // for text edit CTRL+Y: redo
34 Z, // for text edit CTRL+Z: undo
35 };
36
37 using DolphinKeyMap = Common::EnumMap<int, DolphinKey::Z>;