mirror of
https://github.com/X11Libre/xf86-input-keyboard.git
synced 2026-04-14 10:54:15 +00:00
Added xorg.conf.d example snipped
Not installed by default, left for distributors. Copy 50-joystick-all.conf to /etc/X11/xorg.conf.d/ and modify to your needs.
This commit is contained in:
51
config/50-joystick-all.conf
Normal file
51
config/50-joystick-all.conf
Normal file
@@ -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
|
||||
@@ -1 +1 @@
|
||||
EXTRA_DIST = 50-x11-input-joystick.fdi
|
||||
EXTRA_DIST = 50-x11-input-joystick.fdi 50-joystick-all.conf
|
||||
|
||||
Reference in New Issue
Block a user