summaryrefslogtreecommitdiff
path: root/config/50-joystick-all.conf
blob: 0723086b4f6930fbc174588079d8508cd514896f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# 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"

	# Note, that enabling this by default without explicit user
	# consent might result in unexpected behaviour for those,
	# that do not know that this module has been installed.

	# UNCOMMENT TO ENABLE HOTPLUGGING OF JOYSTICKS
#	Driver "joystick"
#	MatchIsJoystick "on"
#	MatchDevicePath "/dev/input/event*"

	# UNCOMMENT TO SET THE DEVICE FLOATING ON HOTPLUG
#	Option "Floating"	"true"

	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