diff options
author | Sascha Hlusiak <saschahlusiak@arcor.de> | 2008-06-19 11:10:02 +0200 |
---|---|---|
committer | Sascha Hlusiak <saschahlusiak@arcor.de> | 2008-06-19 11:10:02 +0200 |
commit | 1d67c9d801a6304267f8a821af13328fda95e497 (patch) | |
tree | 35830699eabed3a400cec0e8a240676834d8ee18 | |
parent | 10203ddef9adbd27f2a9ac51d98703308f86d982 (diff) |
Added more examples for the x11_options properties of xorg-server-1.5
Since xorg-server-1.5 you can pass arbitrary options using the x11_options namespace. No additional
hacks are neccessary to make hal hotplug the joystick driver.
-rw-r--r-- | config/50-x11-input-joystick.fdi | 41 |
1 files changed, 36 insertions, 5 deletions
diff --git a/config/50-x11-input-joystick.fdi b/config/50-x11-input-joystick.fdi index f32a36a..0364362 100644 --- a/config/50-x11-input-joystick.fdi +++ b/config/50-x11-input-joystick.fdi @@ -4,12 +4,43 @@ <match key="info.capabilities" contains="input"> <!-- Match on anything you like from lshal --> <match key="input.product" string="Logitech Logitech Dual Action"> - <!-- Currently Xorg looks for these two capabilities, so - we need to add them. This might confuse other hal clients. --> - <append key="info.capabilities" type="strlist">input.keys</append> - <append key="info.capabilities" type="strlist">input.mouse</append> + <!-- xorg-server<1.5 will only hotplug devices where these two capatilities + are set. This hack can confuse other hal clients. --> + <!-- + <append key="info.capabilities" type="strlist">input.keys</append> + <append key="info.capabilities" type="strlist">input.mouse</append> + --> + <merge key="input.x11_driver" type="string">joystick</merge> - <!-- How to add custom parameters to configure the device? --> + + <!-- Arbitrary options can be passed to the driver using + the input.x11_options property since xorg-server-1.5. --> + + <!-- DEFAULT CONFIGURATION + Change this to override the default settings of the input driver. + --> + <merge key="input.x11_options.MapButton1" type="string">button=1</merge> + <merge key="input.x11_options.MapButton2" type="string">button=2</merge> + <merge key="input.x11_options.MapButton3" type="string">button=3</merge> + + <merge key="input.x11_options.MapAxis1" type="string">mode=relative axis=+1x deadzone=5000</merge> + <merge key="input.x11_options.MapAxis2" type="string">mode=relative axis=+1y deadzone=5000</merge> + <merge key="input.x11_options.MapAxis3" type="string">mode=relative axis=+1zx deadzone=5000</merge> + <merge key="input.x11_options.MapAxis4" type="string">mode=relative axis=+1zy deadzone=5000</merge> + <merge key="input.x11_options.MapAxis5" type="string">mode=accelerated axis=+1x deadzone=5000</merge> + <merge key="input.x11_options.MapAxis6" type="string">mode=accelerated axis=+1y deadzone=5000</merge> + + <!-- EXAMPLES + <merge key="input.x11_options.DebugLevel" type="string">5</merge> + <merge key="input.x11_options.AutoRepeat" type="string">500 4</merge> + <merge key="input.x11_options.MapButton4" type="string">key=Alt_L+Tab</merge> + <merge key="input.x11_options.MapButton8" type="string">amplify=0.3</merge> + <merge key="input.x11_options.MapButton9" type="string">disable-mouse</merge> + <merge key="input.x11_options.MapButton10" type="string">key=space</merge> + + <merge key="input.x11_options.MapAxis1" type="string">mode=accelerated keylow=Left keyhigh=Right</merge> + <merge key="input.x11_options.MapAxis2" type="string">mode=accelerated keylow=Up keyhigh=Down</merge> + --> </match> </match> </device> |