|
13 | 13 | // * Find a use for snap / master / other unused buttons?
|
14 | 14 |
|
15 | 15 |
|
16 |
| -// ==== Friendly User Configuration ==== |
17 |
| -// The Remix Slot buttons can have two possible functions: |
18 |
| -// 1. Sample launchers: pressing the buttons activates sample players in Mixxx |
19 |
| -// 2. Loop Roll: Holding the buttons activates a short loop, and when the button is |
20 |
| -// released playback will resume where the track would have been without the loop. |
21 |
| -// To choose sample launching, set the word in quotes below to SAMPLES, all caps. For |
22 |
| -// rolls, change the word to LOOPROLLS (no space). |
23 |
| -RemixSlotButtonAction = "SAMPLES"; |
24 |
| -// The Cue button, when Shift is also held, can have two possible functions: |
25 |
| -// 1. "REWIND": seeks to the very start of the track. |
26 |
| -// 2. "REVERSEROLL": performs a temporary reverse or "censor" effect, where the track |
27 |
| -// is momentarily played in reverse until the button is released. |
28 |
| -ShiftCueButtonAction = "REWIND"; |
29 |
| - |
30 |
| - |
31 | 16 | TraktorS4MK2 = new function() {
|
32 | 17 | this.controller = new HIDController();
|
33 | 18 | // TODO: Decide if these should be part of this.controller instead.
|
34 | 19 | this.partial_packet = Object();
|
35 | 20 | this.divisor_map = Object();
|
36 |
| - this.RemixSlotButtonAction = RemixSlotButtonAction; |
37 |
| - this.ShiftCueButtonAction = ShiftCueButtonAction; |
| 21 | + this.RemixSlotButtonAction = engine.getSetting("remixSlotButtonAction"); |
| 22 | + this.ShiftCueButtonAction = engine.getSetting("shiftCueButtonAction"); |
38 | 23 |
|
39 | 24 | // When true, packets will not be sent to the controller. Good for doing mass updates.
|
40 | 25 | this.controller.freeze_lights = false;
|
|
0 commit comments