aboutsummaryrefslogtreecommitdiffhomepage
path: root/configs/evdev.conf
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2018-02-18 22:31:51 +0100
committercbdev <cb@cbcdn.com>2018-02-18 22:31:51 +0100
commitb9e8b82fe529ecc21cba03378898564c5c6a33d8 (patch)
treebe483103bd3690ed22ef02f24a6153f64c718aee /configs/evdev.conf
parent76f017d6db8a8b707077e0f8066ded267d7ceb5a (diff)
downloadmidimonster-b9e8b82fe529ecc21cba03378898564c5c6a33d8.tar.gz
midimonster-b9e8b82fe529ecc21cba03378898564c5c6a33d8.tar.bz2
midimonster-b9e8b82fe529ecc21cba03378898564c5c6a33d8.zip
Add evdev example config
Diffstat (limited to 'configs/evdev.conf')
-rw-r--r--configs/evdev.conf31
1 files changed, 31 insertions, 0 deletions
diff --git a/configs/evdev.conf b/configs/evdev.conf
new file mode 100644
index 0000000..3a0fa4f
--- /dev/null
+++ b/configs/evdev.conf
@@ -0,0 +1,31 @@
+[backend artnet]
+bind = * 6454
+net = 0
+
+[evdev xbox]
+input = /dev/input/event14
+axis.ABS_X = 34300 0 65535 255 4095
+axis.ABS_RZ = 34300 0 65535 255 4095
+axis.ABS_Y = 34300 0 65535 255 4095
+
+[artnet out]
+uni = 0
+dest = 129.13.215.127
+
+[map]
+xbox.EV_ABS.ABS_X > out.1+2
+xbox.EV_ABS.ABS_Y > out.3+4
+
+xbox.EV_ABS.ABS_Z > out.16+17
+xbox.EV_ABS.ABS_RZ > out.18+19
+
+xbox.EV_ABS.ABS_BRAKE > out.8
+xbox.EV_ABS.ABS_GAS > out.23
+
+xbox.EV_KEY.BTN_NORTH > out.5
+xbox.EV_KEY.BTN_EAST > out.6
+xbox.EV_KEY.BTN_SOUTH > out.7
+
+xbox.EV_KEY.BTN_NORTH > out.20
+xbox.EV_KEY.BTN_EAST > out.21
+xbox.EV_KEY.BTN_SOUTH > out.22