@@ -910,6 +910,7 @@ TraktorS3.Deck = class {
910910 // There is no control object to mark / unmark a track as played.
911911 // this.defineButton(messageShort, "!SetPlayed", 0x01, 0x10, 0x04, 0x20,
912912 // deckFn.SetPlayedHandler);
913+ this . defineButton ( messageShort , "!StarTrack" , 0x01 , 0x10 , 0x04 , 0x20 , deckFn . StarTrackHandler ) ;
913914 this . defineButton ( messageShort , "!LibraryFocus" , 0x01 , 0x20 , 0x04 , 0x40 , deckFn . LibraryFocusHandler ) ;
914915 this . defineButton ( messageShort , "!MaximizeLibrary" , 0x01 , 0x40 , 0x04 , 0x80 , deckFn . MaximizeLibraryHandler ) ;
915916
@@ -1143,6 +1144,15 @@ TraktorS3.Deck = class {
11431144 }
11441145 }
11451146
1147+ StarTrackHandler ( field ) {
1148+ this . colorOutput ( field . value , "!StarTrack" ) ;
1149+ if ( field . value === 0 ) {
1150+ return ;
1151+ }
1152+
1153+ engine . setValue ( "[Library]" , "sort_focused_column" , 1 ) ;
1154+ }
1155+
11461156 LibraryFocusHandler ( field ) {
11471157 this . colorOutput ( field . value , "!LibraryFocus" ) ;
11481158 if ( field . value === 0 ) {
@@ -1430,6 +1440,7 @@ TraktorS3.Deck = class {
14301440 this . defineOutput ( outputA , "slip_enabled" , 0x02 , 0x1B ) ;
14311441 this . defineOutput ( outputA , "reverse" , 0x03 , 0x1C ) ;
14321442 this . defineOutput ( outputA , "!PreviewTrack" , 0x04 , 0x1D ) ;
1443+ this . defineOutput ( outputA , "!StarTrack" , 0x05 , 0x1E ) ;
14331444 this . defineOutput ( outputA , "!LibraryFocus" , 0x06 , 0x1F ) ;
14341445 this . defineOutput ( outputA , "!MaximizeLibrary" , 0x07 , 0x20 ) ;
14351446 this . defineOutput ( outputA , "quantize" , 0x08 , 0x21 ) ;
0 commit comments