aboutsummaryrefslogtreecommitdiffhomepage
path: root/configs/midi-mouse.cfg
blob: 7e110ff4a193267f52318c9bb7fedb535fd34329 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
; Use a Launch Control MIDI controller as mouse input
; Running this configuration requires root privileges on most systems,
; as creating additional input devices could potentially be misused for
; nefarious purposes

[backend midi]
detect = on

[evdev mouse]
output = MIDI Mouse
relaxis.REL_X = 255
relaxis.REL_Y = 255

[midi launch]
read = Launch

[map]
launch.ch0.cc0 > mouse.EV_REL.REL_X
launch.ch0.cc1 > mouse.EV_REL.REL_Y

launch.ch0.note0 > mouse.EV_KEY.BTN_LEFT
launch.ch0.note1 > mouse.EV_KEY.BTN_RIGHT