summaryrefslogtreecommitdiffhomepage
path: root/opentrack/win32-shortcuts.h
diff options
context:
space:
mode:
Diffstat (limited to 'opentrack/win32-shortcuts.h')
-rw-r--r--opentrack/win32-shortcuts.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/opentrack/win32-shortcuts.h b/opentrack/win32-shortcuts.h
new file mode 100644
index 00000000..8167036d
--- /dev/null
+++ b/opentrack/win32-shortcuts.h
@@ -0,0 +1,18 @@
+#pragma once
+
+#ifdef _WIN32
+
+struct win_key;
+
+extern QList<win_key> windows_key_mods;
+extern QList<win_key> windows_key_sequences;
+
+struct win_key
+{
+ win_key(int win, Qt::Key qt) : win(win), qt(qt) {}
+ int win;
+ Qt::Key qt;
+ static bool from_qt(QKeySequence qt_, int& dik, Qt::KeyboardModifiers &mods);
+};
+
+#endif