Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #(put this file to your xorg configuration directory, or add it to your xorg.conf file)
- #works with a Saitek X6-38U USB gamepad as is, others might need adjustments.
- # cat saitek_impact.conf
- # /etc/X11/xorg.conf.d/saitek_impact.conf
- #(put this file to your xorg configuration directory, or add it to your xorg.conf file)
- #works with a Saitek X6-38U USB gamepad as is, others might need adjustments.
- Section "InputClass"
- Identifier "Saitek_IMPACT_Gamepad"
- Option "MatchIsJoystick" "on"
- Option "MatchUSBID" "07b5:0315"
- # Option "MatchVendor" "07b5"
- # Option "MatchProduct" "0315"
- Option "DebugLevel" "0"
- #If compiled with debugging information, controls the verbosity of the driver. The higher the DebugLevel, the more output is produced. Default: 0
- Option "StartKeysEnabled" "True"
- Option "StartMouseEnabled" "True"
- #deadzone ok now as 500, might decrease again, try 250
- #now testing with the expo hacked joystick driver
- # right stick axes: point
- Option "MapAxis4" "mode=relative axis=+1x deadzone=200"
- Option "MapAxis3" "mode=relative axis=+1y deadzone=200"
- # left stick axes: scroll
- Option "MapAxis1" "mode=relative axis=+1zx deadzone=200"
- Option "MapAxis2" "mode=relative axis=+1zy deadzone=200"
- # Directional pad: point
- # Option "MapAxis5" "mode=accelerated axis=+1x deadzone=500"
- # Option "MapAxis6" "mode=accelerated axis=+1y deadzone=500"
- # Directional pad: scroll
- # Option "MapAxis5" "mode=accelerated axis=+1zx deadzone=500"
- # Option "MapAxis6" "mode=accelerated axis=+1zy deadzone=500"
- # Directional pad: press arrow keys...
- Option "MapAxis5" "mode=accelerated keylow=113 keyhigh=114 axis=1.0key"
- Option "MapAxis6" "mode=accelerated keylow=111 keyhigh=116 axis=1.0key"
- #relative goes at max rate always...
- # Option "MapAxis5" "mode=relative keylow=113 keyhigh=114 axis=1.0key"
- # Option "MapAxis1" "mode=relative keylow=113 keyhigh=114 axis=0.5key"
- # Option "MapAxis2" "mode=relative keylow=111 keyhigh=116"
- # Option "MapAxis3" "mode=accelerated keylow=113 keyhigh=114"
- # Option "MapAxis4" "mode=accelerated keylow=111 keyhigh=116"
- #will map the first and third axis to the arrow keys left and right and the second and fourth axis to the arrow keys up and down. The keys for the first two axes will be generated in an interval according to the value of the axis. The autorepeat speed of the first axis will be half the speed of that of the second axis. The keys for the third and fourth axis are generated once when the axis moves out of the deadzone and when it moves back into the deadzone. X.Org will autorepeat those keys according to current keyboard settings.
- # Buttons 7, 8 and 5 : click
- # Triggers: no use
- Option "MapButton7" "button=1"
- Option "MapButton5" "button=2"
- Option "MapButton8" "button=3"
- # Option "MapButton6" "none"
- Option "MapButton6" "amplify=2"
- #Amplifies the movement of all axes by the given factor when pressed. Different factors can be combined.
- Option "MapButton2" "button=4" # mouse scroll up
- Option "MapButton4" "button=5" # mouse scroll down
- # Rear buttons: back and forward
- Option "MapButton1" "key=166" # XF86Back
- Option "MapButton3" "key=167" # XF86Forward
- # Option "MapButton1" "button=8" # browser mouse back
- # Option "MapButton3" "button=9" # browser mouse forward
- # Special buttons
- Option "MapButton9" "key=135" # select : Menu
- # Option "MapButton10" "key=172" # start : XF86AudioPlay
- #Option "MapButton13" "key=180" # home : XF86HomePage
- # Sticks click: click
- Option "MapButton11" "button=3" # clic left stick
- Option "MapButton12" "button=1" # clic right stick
- Option "MapButton10" "disable-all"
- #"disable-mouse" "disable-keys" "disable-all"
- #Disables either the generation of mouse events, key events or the generation of all X events by the driver. Press button again to allow the driver to generate events again.
- EndSection
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement