Skip to content

Commit

Permalink
fix(controllers): explicitly overwrite JogWheelBasic input handler
Browse files Browse the repository at this point in the history
This should make it obvious when JogWheelBasic controls are
bound to the wrong input handler.
  • Loading branch information
Swiftb0y committed Apr 2, 2023
1 parent 86539e0 commit b8da147
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions res/controllers/midi-components-0.0.js
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,10 @@
engine.scratchDisable(this.deck);
}
},
input: function(_channel, control, _value, status, _group) {
throw "Called wrong input handler for " + status + ": " + control + ".\n" +
"Please bind jogwheel-related messages to inputWheel and inputTouch!\n";
}
});

var EffectUnit = function(unitNumbers, allowFocusWhenParametersHidden, colors) {
Expand Down

0 comments on commit b8da147

Please sign in to comment.