aboutsummaryrefslogtreecommitdiffhomepage
path: root/configs/lua.cfg
blob: b892e91bdcd80ec82185f28bccd9c1ace7915083 (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
; This configuration uses a Lua script to distribute one input channel (from either a mouse
; button or an axis control) onto multiple output channels (on ArtNet).

[backend artnet]
bind = 0.0.0.0

[evdev mouse]
device = /dev/input/by-path/platform-i8042-serio-2-event-mouse

[evdev xbox]
;device = /dev/input/event17
axis.ABS_X = 34300 0 65535 255 4095
axis.ABS_Y = 34300 0 65535 255 4095

[lua lua]
script = configs/demo.lua

[artnet art]
universe = 0
destination = 255.255.255.255

[map]
mouse.EV_KEY.BTN_LEFT > lua.click
xbox.EV_ABS.ABS_X > lua.offset
xbox.EV_ABS.ABS_Y > lua.width

art.1 < lua.out0
art.2 < lua.out1
art.3 < lua.out2
art.4 < lua.out3
art.5 < lua.out4
art.6 < lua.out5
art.7 < lua.out6
art.8 < lua.out7
art.9 < lua.out8
art.10 < lua.out9
art.11 < lua.out10

art.12 < lua.dim