From 80f5bc6a3121d57ff2e82c42c66eababac526bfd Mon Sep 17 00:00:00 2001 From: Michael Wigard Date: Sun, 3 Sep 2023 19:46:08 +0200 Subject: [PATCH] Update res/controllers/midi-components-0.0.js Co-authored-by: Swiftb0y <12380386+Swiftb0y@users.noreply.github.com> --- res/controllers/midi-components-0.0.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/res/controllers/midi-components-0.0.js b/res/controllers/midi-components-0.0.js index bde16a0ec13..e0cc0d7bcff 100644 --- a/res/controllers/midi-components-0.0.js +++ b/res/controllers/midi-components-0.0.js @@ -790,6 +790,9 @@ throw "Called wrong input handler for " + status + ": " + control + ".\n" + "Please bind jogwheel-related messages to inputWheel and inputTouch!\n"; }, + // this is needed for features such as "deck switching" that work + // by changing the component group. It is assumed they call `connect` + // afterwards. connect: function() { Component.prototype.connect.call(this); this.deck = parseInt(script.channelRegEx.exec(this.group)[1]);