summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorSascha Hlusiak <saschahlusiak@arcor.de>2007-12-06 23:48:49 +0100
committerSascha Hlusiak <saschahlusiak@arcor.de>2007-12-06 23:48:49 +0100
commitc463776b8b35e6e721128a7348e088d306c4ee02 (patch)
tree8bbb410b5caae240e61847e1f06bfb820595008d /config
parent833454bd7bea04924b85105bf38ed57dd2b5e5c2 (diff)
Added example hal policy file for input hotplugging of joysticks
Hal policy config/50-x11-input-joystick.fdi is not installed by default and you probably don't want to.
Diffstat (limited to 'config')
-rw-r--r--config/50-x11-input-joystick.fdi16
-rw-r--r--config/Makefile.am1
2 files changed, 17 insertions, 0 deletions
diff --git a/config/50-x11-input-joystick.fdi b/config/50-x11-input-joystick.fdi
new file mode 100644
index 0000000..f32a36a
--- /dev/null
+++ b/config/50-x11-input-joystick.fdi
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<deviceinfo version="0.2">
+ <device>
+ <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>
+ <merge key="input.x11_driver" type="string">joystick</merge>
+ <!-- How to add custom parameters to configure the device? -->
+ </match>
+ </match>
+ </device>
+</deviceinfo>
diff --git a/config/Makefile.am b/config/Makefile.am
new file mode 100644
index 0000000..c96ffeb
--- /dev/null
+++ b/config/Makefile.am
@@ -0,0 +1 @@
+EXTRA_DIST = 50-x11-input-joystick.fdi