Skip to content

Commit

Permalink
Update res/controllers/midi-components-0.0.js
Browse files Browse the repository at this point in the history
Co-authored-by: Swiftb0y <[email protected]>
  • Loading branch information
miwig and Swiftb0y authored Sep 3, 2023
1 parent efabcf6 commit 80f5bc6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions res/controllers/midi-components-0.0.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 80f5bc6

Please sign in to comment.