summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorBe <be@mixxx.org>2020-07-31 10:02:07 -0500
committerBe <be@mixxx.org>2020-07-31 10:02:07 -0500
commit67fbe3d27dc97e6fc280c5626e8016a5f67a0e64 (patch)
tree0f2bd447fa324a4ca3a86adbef2b6d66b565a26e /res
parent7cca878357fab4b86012252aeaac50d7ef8a0bcc (diff)
NI Traktor Kontrol S2 Mk2: move setting of useSetParameter
Diffstat (limited to 'res')
-rw-r--r--res/controllers/Traktor-Kontrol-S2-MK2-hid-scripts.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/res/controllers/Traktor-Kontrol-S2-MK2-hid-scripts.js b/res/controllers/Traktor-Kontrol-S2-MK2-hid-scripts.js
index b8071203b2..fa4b45f02b 100644
--- a/res/controllers/Traktor-Kontrol-S2-MK2-hid-scripts.js
+++ b/res/controllers/Traktor-Kontrol-S2-MK2-hid-scripts.js
@@ -241,6 +241,7 @@ TraktorS2MK2.registerInputPackets = function() {
MessageLong.setCallback("[Master]", "!samplerGain", this.samplerGainKnob);
MessageLong.addControl("[Playlist]", "!browse", 0x02, "B", 0x0F, false, this.browseEncoder);
+ TraktorS2MK2.scalerParameter.useSetParameter = true;
this.controller.setScaler("volume", this.scalerVolume);
this.controller.setScaler("headMix", this.scalerSlider);
this.controller.setScaler("parameter1", this.scalerParameter);
@@ -1255,8 +1256,6 @@ TraktorS2MK2.browseEncoder = function(field) {
TraktorS2MK2.scalerParameter = function(group, name, value) {
return script.absoluteLin(value, 0, 1, 16, 4080);
};
-// Tell the HIDController script to use setParameter instead of setValue.
-TraktorS2MK2.scalerParameter.useSetParameter = true;
TraktorS2MK2.scalerVolume = function(group, name, value) {
if (group === "[Master]") {