summaryrefslogtreecommitdiff
path: root/config/50-joystick-all.conf
diff options
context:
space:
mode:
Diffstat (limited to 'config/50-joystick-all.conf')
-rw-r--r--config/50-joystick-all.conf51
1 files changed, 51 insertions, 0 deletions
diff --git a/config/50-joystick-all.conf b/config/50-joystick-all.conf
new file mode 100644
index 0000000..ee03dd5
--- /dev/null
+++ b/config/50-joystick-all.conf
@@ -0,0 +1,51 @@
+# Example xorg.conf.d snippet that assigns the joystick driver
+# to all joysticks. See xorg.conf.d(5) for more information on
+# InputClass.
+# DO NOT EDIT THIS FILE, your distribution will likely overwrite
+# it when updating. Copy (and rename) this file into
+# /etc/X11/xorg.conf.d first.
+# Additional options may be added in the form of
+# Option "OptionName" "value"
+#
+
+Section "InputClass"
+ Identifier "joystick-all"
+
+ # UNCOMMENT TO ENABLE HOTPLUGGING OF JOYSTICKS
+# Driver "joystick"
+# MatchIsJoystick "on"
+# MatchDevicePath "/dev/input/event*"
+
+ Option "MapButton1" "button=1"
+ Option "MapButton2" "button=2"
+ Option "MapButton3" "button=3"
+
+ Option "MapAxis1" "mode=relative axis=+1x deadzone=5000"
+ Option "MapAxis2" "mode=relative axis=+1y deadzone=5000"
+ Option "MapAxis3" "mode=relative axis=+1zx deadzone=5000"
+ Option "MapAxis4" "mode=relative axis=+1zy deadzone=5000"
+ Option "MapAxis5" "mode=accelerated axis=+1x deadzone=5000"
+ Option "MapAxis6" "mode=accelerated axis=+1y deadzone=5000"
+
+
+ # Map Alt+Tab to button #4
+# Option "MapButton4" "key=64+23"
+
+ # Button 8 will slow down all movement to factor 0.3
+# Option "MapButton8" "amplify=0.3"
+
+ # Button 9 will disable all events except button #9 itself
+# Option "MapButton9" "disable-all"
+
+ # Map button #10 to Space
+# Option "MapButton10" "key=65"
+
+ # Map axis #1 and #2 to the keycodes for Left, Right, Up and Down rather
+ # than pointer movement
+# Option "MapAxis1" "mode=accelerated keylow=113 keyhigh=114"
+# Option "MapAxis2" "mode=accelerated keylow=111 keyhigh=116"
+
+# Option "XkbLayout" "de"
+# Option "XkbVariant" "nodeadkeys"
+# Option "AutoRepeat" "400 25"
+EndSection