summaryrefslogtreecommitdiffhomepage
path: root/opentrack/global-shortcuts.cpp
blob: 7569fd9a10b6d02037eaac26ca7742f6a9bfc635 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#include <QList>
#include <QString>

extern QList<QString> global_key_sequences;
extern QList<int> global_windows_key_sequences;

#if defined(_WIN32)
#   ifndef DIRECTINPUT_VERSION
#       define DIRECTINPUT_VERSION 0x800
#   endif
#   include <windows.h>
#   include <dinput.h>

QList<int> global_windows_key_sequences =
    QList<int>()
    << 0
    << DIK_F1
    << DIK_F2
    << DIK_F3
    << DIK_F4
    << DIK_F5
    << DIK_F6
    << DIK_F7
    << DIK_F8
    << DIK_F9
    << DIK_F10
    << DIK_F11
    << DIK_F12
    << DIK_LEFT
    << DIK_RIGHT
    << DIK_UP
    << DIK_DOWN
    << DIK_PGUP
    << DIK_PGDN
    << DIK_HOME
    << DIK_END
    << DIK_BACK
    << DIK_DELETE
    << DIK_RETURN;
#endif

QList<QString> global_key_sequences =
    QList<QString>()
    << ""
    << "F1"
    << "F2"
    << "F3"
    << "F4"
    << "F5"
    << "F6"
    << "F7"
    << "F8"
    << "F9"
    << "F10"
    << "F11"
    << "F12"
    << "Left"
    << "Right"
    << "Up"
    << "Down"
    << "PgUp"
    << "PgDown"
    << "Home"
    << "End"
    << "Del"
;