summaryrefslogtreecommitdiffhomepage
path: root/opentrack
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-10-24 05:16:01 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-10-24 07:02:01 +0200
commit1379b8c5058f7a82c9c4747c06bc742cde87a69a (patch)
treef276d5cbb827202cb06fdf07813d289b7c0378ff /opentrack
parentd201ff1671c6301a4d7934ddd270abf9a6ef8b72 (diff)
mv only
Diffstat (limited to 'opentrack')
-rw-r--r--opentrack/global-shortcuts.cpp142
1 files changed, 142 insertions, 0 deletions
diff --git a/opentrack/global-shortcuts.cpp b/opentrack/global-shortcuts.cpp
new file mode 100644
index 00000000..07099dab
--- /dev/null
+++ b/opentrack/global-shortcuts.cpp
@@ -0,0 +1,142 @@
+#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_A
+ << DIK_B
+ << DIK_C
+ << DIK_D
+ << DIK_E
+ << DIK_F
+ << DIK_G
+ << DIK_H
+ << DIK_I
+ << DIK_J
+ << DIK_K
+ << DIK_L
+ << DIK_M
+ << DIK_N
+ << DIK_O
+ << DIK_P
+ << DIK_Q
+ << DIK_R
+ << DIK_S
+ << DIK_T
+ << DIK_U
+ << DIK_V
+ << DIK_W
+ << DIK_X
+ << DIK_Y
+ << DIK_Z
+ << 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_1
+ << DIK_2
+ << DIK_3
+ << DIK_4
+ << DIK_5
+ << DIK_6
+ << DIK_7
+ << DIK_8
+ << DIK_9
+ << DIK_0
+ << DIK_LEFT
+ << DIK_RIGHT
+ << DIK_UP
+ << DIK_DOWN
+ << DIK_PGUP
+ << DIK_DOWN
+ << DIK_HOME
+ << DIK_END
+ << DIK_BACK
+ << DIK_DELETE
+ << DIK_RETURN;
+#endif
+
+QList<QString> global_key_sequences =
+ QList<QString>()
+ << ""
+ << "A"
+ << "B"
+ << "C"
+ << "D"
+ << "E"
+ << "F"
+ << "G"
+ << "H"
+ << "I"
+ << "J"
+ << "K"
+ << "L"
+ << "M"
+ << "N"
+ << "O"
+ << "P"
+ << "Q"
+ << "R"
+ << "S"
+ << "T"
+ << "U"
+ << "V"
+ << "W"
+ << "X"
+ << "Y"
+ << "Z"
+ << "F1"
+ << "F2"
+ << "F3"
+ << "F4"
+ << "F5"
+ << "F6"
+ << "F7"
+ << "F8"
+ << "F9"
+ << "F10"
+ << "F11"
+ << "F12"
+ << "1"
+ << "2"
+ << "3"
+ << "4"
+ << "5"
+ << "6"
+ << "7"
+ << "8"
+ << "9"
+ << "0"
+ << "Left"
+ << "Right"
+ << "Up"
+ << "Down"
+ << "PgUp"
+ << "PgDown"
+ << "Home"
+ << "End"
+ << "Backspace"
+ << "Del"
+ << "Enter"
+;
+
+