Skip to content

Commit

Permalink
Numark Mixtrack 2: fix ToggleSelectedSidebarItem
Browse files Browse the repository at this point in the history
When browsing, press the browse button to toggle opening/closing a folder.
  • Loading branch information
timkuijsten committed Aug 7, 2024
1 parent 4fbe67b commit 222c5e7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion res/controllers/Numark Mixtrack 2.midi.xml
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@
</control>
<control>
<group>[Playlist]</group>
<key>NumarkMixTrackII.toggleDirectoryMode</key>
<key>NumarkMixTrackII.toggleSelectedSidebarItem</key>
<status>0x90</status>
<midino>0x76</midino>
<options>
Expand Down
9 changes: 8 additions & 1 deletion res/controllers/Numark-Mixtrack-2-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
//
// Known Issue:
// - Cue Point Led address is missing
// - ToggleSelectedSidebarItem control is not working
// - After activating brake, Play button is not working

// 10/26/2016 - Changed by Shaun O'Neill
Expand All @@ -24,6 +23,8 @@
// Low frequency filter now doubles as filter effect control via shift key.
// 03/02/2018 - Changed by ninomp
// Adapt the mapping for Mixxx 2.1
// 08/07/2024 - Changed by timkuijsten
// fix the ToggleSelectedSidebarItem control


function NumarkMixTrackII() {}
Expand Down Expand Up @@ -158,6 +159,12 @@ NumarkMixTrackII.selectKnob = function(channel, control, value, status, group) {
}
}

NumarkMixTrackII.toggleSelectedSidebarItem = function(channel, control, value, status, group) {
if (value) {
engine.setValue("[Playlist]", "ToggleSelectedSidebarItem", 1);
}
}

NumarkMixTrackII.toggleDirectoryMode = function(channel, control, value, status, group) {
// Toggle setting and light
if (value) {
Expand Down

0 comments on commit 222c5e7

Please sign in to comment.