aboutsummaryrefslogtreecommitdiff
path: root/freeciv/files/kbdmouse.h
diff options
context:
space:
mode:
Diffstat (limited to 'freeciv/files/kbdmouse.h')
-rw-r--r--freeciv/files/kbdmouse.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/freeciv/files/kbdmouse.h b/freeciv/files/kbdmouse.h
new file mode 100644
index 0000000..a99ba10
--- /dev/null
+++ b/freeciv/files/kbdmouse.h
@@ -0,0 +1,21 @@
+/*
+ *
+ * Keyboard Mouse Emulation Config
+ *
+ */
+
+#include "keyboard.c"
+
+#define KBDMOUSE_LEFT_CLICK NNKEY_QI
+#define KBDMOUSE_MIDDLE_CLICK NNKEY_VOLUMEDOWN
+#define KBDMOUSE_RIGHT_CLICK NNKEY_VOLUMEUP
+
+#define KBDMOUSE_UP NNKEY_UP
+#define KBDMOUSE_DOWN NNKEY_DOWN
+#define KBDMOUSE_LEFT NNKEY_LEFT
+#define KBDMOUSE_RIGHT NNKEY_RIGHT
+
+#define KBDMOUSE_STEP 5
+
+#define KBDMOUSE_REPEAT_DELAY SDL_DEFAULT_REPEAT_DELAY
+#define KBDMOUSE_REPEAT_INTERVAL (SDL_DEFAULT_REPEAT_INTERVAL/2)