@@ -67,6 +67,8 @@ class Controls extends FlxActionSet
67
67
var _freeplay_left = new FunkinAction (Action .FREEPLAY_LEFT );
68
68
var _freeplay_right = new FunkinAction (Action .FREEPLAY_RIGHT );
69
69
var _freeplay_char_select = new FunkinAction (Action .FREEPLAY_CHAR_SELECT );
70
+ var _freeplay_top_scroll = new FunkinAction (Action .FREEPLAY_TOP_SCROLL );
71
+ var _freeplay_bottom_scroll = new FunkinAction (Action .FREEPLAY_BOTTOM_SCROLL );
70
72
var _cutscene_advance = new FunkinAction (Action .CUTSCENE_ADVANCE );
71
73
var _debug_menu = new FunkinAction (Action .DEBUG_MENU );
72
74
#if FEATURE_CHART_EDITOR
@@ -276,6 +278,16 @@ class Controls extends FlxActionSet
276
278
inline function get_FREEPLAY_CHAR_SELECT ()
277
279
return _freeplay_char_select .check ();
278
280
281
+ public var FREEPLAY_BOTTOM_SCROLL (get , never ): Bool ;
282
+
283
+ inline function get_FREEPLAY_BOTTOM_SCROLL ()
284
+ return _freeplay_bottom_scroll .check ();
285
+
286
+ public var FREEPLAY_TOP_SCROLL (get , never ): Bool ;
287
+
288
+ inline function get_FREEPLAY_TOP_SCROLL ()
289
+ return _freeplay_top_scroll .check ();
290
+
279
291
public var CUTSCENE_ADVANCE (get , never ): Bool ;
280
292
281
293
inline function get_CUTSCENE_ADVANCE ()
@@ -337,6 +349,8 @@ class Controls extends FlxActionSet
337
349
add (_freeplay_left );
338
350
add (_freeplay_right );
339
351
add (_freeplay_char_select );
352
+ add (_freeplay_bottom_scroll );
353
+ add (_freeplay_top_scroll );
340
354
add (_cutscene_advance );
341
355
add (_debug_menu );
342
356
#if FEATURE_CHART_EDITOR add (_debug_chart ); #end
@@ -462,6 +476,8 @@ class Controls extends FlxActionSet
462
476
case FREEPLAY_LEFT : _freeplay_left ;
463
477
case FREEPLAY_RIGHT : _freeplay_right ;
464
478
case FREEPLAY_CHAR_SELECT : _freeplay_char_select ;
479
+ case FREEPLAY_BOTTOM_SCROLL : _freeplay_bottom_scroll ;
480
+ case FREEPLAY_TOP_SCROLL : _freeplay_top_scroll ;
465
481
case CUTSCENE_ADVANCE : _cutscene_advance ;
466
482
case DEBUG_MENU : _debug_menu ;
467
483
#if FEATURE_CHART_EDITOR case DEBUG_CHART : _debug_chart ; #end
@@ -542,6 +558,10 @@ class Controls extends FlxActionSet
542
558
func (_freeplay_right , JUST_PRESSED );
543
559
case FREEPLAY_CHAR_SELECT :
544
560
func (_freeplay_char_select , JUST_PRESSED );
561
+ case FREEPLAY_BOTTOM_SCROLL :
562
+ func (_freeplay_bottom_scroll , JUST_PRESSED );
563
+ case FREEPLAY_TOP_SCROLL :
564
+ func (_freeplay_top_scroll , JUST_PRESSED );
545
565
case CUTSCENE_ADVANCE :
546
566
func (_cutscene_advance , JUST_PRESSED );
547
567
case DEBUG_MENU :
@@ -770,6 +790,8 @@ class Controls extends FlxActionSet
770
790
bindKeys (Control .FREEPLAY_LEFT , getDefaultKeybinds (scheme , Control .FREEPLAY_LEFT ));
771
791
bindKeys (Control .FREEPLAY_RIGHT , getDefaultKeybinds (scheme , Control .FREEPLAY_RIGHT ));
772
792
bindKeys (Control .FREEPLAY_CHAR_SELECT , getDefaultKeybinds (scheme , Control .FREEPLAY_CHAR_SELECT ));
793
+ bindKeys (Control .FREEPLAY_BOTTOM_SCROLL , getDefaultKeybinds (scheme , Control .FREEPLAY_BOTTOM_SCROLL ));
794
+ bindKeys (Control .FREEPLAY_TOP_SCROLL , getDefaultKeybinds (scheme , Control .FREEPLAY_TOP_SCROLL ));
773
795
bindKeys (Control .CUTSCENE_ADVANCE , getDefaultKeybinds (scheme , Control .CUTSCENE_ADVANCE ));
774
796
bindKeys (Control .DEBUG_MENU , getDefaultKeybinds (scheme , Control .DEBUG_MENU ));
775
797
#if FEATURE_CHART_EDITOR
@@ -810,6 +832,8 @@ class Controls extends FlxActionSet
810
832
case Control .FREEPLAY_LEFT : return [Q ]; // Switch tabs on the menu
811
833
case Control .FREEPLAY_RIGHT : return [E ]; // Switch tabs on the menu
812
834
case Control .FREEPLAY_CHAR_SELECT : return [TAB ];
835
+ case Control .FREEPLAY_BOTTOM_SCROLL : return [END ];
836
+ case Control .FREEPLAY_TOP_SCROLL : return [HOME ];
813
837
case Control .CUTSCENE_ADVANCE : return [Z , ENTER ];
814
838
case Control .DEBUG_MENU : return [GRAVEACCENT ];
815
839
#if FEATURE_CHART_EDITOR case Control .DEBUG_CHART : return []; #end
@@ -839,6 +863,8 @@ class Controls extends FlxActionSet
839
863
case Control .FREEPLAY_LEFT : return [Q ]; // Switch tabs on the menu
840
864
case Control .FREEPLAY_RIGHT : return [E ]; // Switch tabs on the menu
841
865
case Control .FREEPLAY_CHAR_SELECT : return [TAB ];
866
+ case Control .FREEPLAY_BOTTOM_SCROLL : return [END ];
867
+ case Control .FREEPLAY_TOP_SCROLL : return [HOME ];
842
868
case Control .CUTSCENE_ADVANCE : return [G , Z ];
843
869
case Control .DEBUG_MENU : return [GRAVEACCENT ];
844
870
#if FEATURE_CHART_EDITOR case Control .DEBUG_CHART : return []; #end
@@ -868,6 +894,8 @@ class Controls extends FlxActionSet
868
894
case Control .FREEPLAY_LEFT : return [];
869
895
case Control .FREEPLAY_RIGHT : return [];
870
896
case Control .FREEPLAY_CHAR_SELECT : return [];
897
+ case Control .FREEPLAY_BOTTOM_SCROLL : return [];
898
+ case Control .FREEPLAY_TOP_SCROLL : return [];
871
899
case Control .CUTSCENE_ADVANCE : return [ENTER ];
872
900
case Control .DEBUG_MENU : return [];
873
901
#if FEATURE_CHART_EDITOR case Control .DEBUG_CHART : return []; #end
@@ -984,6 +1012,8 @@ class Controls extends FlxActionSet
984
1012
Control .FREEPLAY_LEFT => getDefaultGamepadBinds (Control .FREEPLAY_LEFT ),
985
1013
Control .FREEPLAY_RIGHT => getDefaultGamepadBinds (Control .FREEPLAY_RIGHT ),
986
1014
Control .FREEPLAY_CHAR_SELECT => getDefaultGamepadBinds (Control .FREEPLAY_CHAR_SELECT ),
1015
+ Control .FREEPLAY_BOTTOM_SCROLL => getDefaultGamepadBinds (Control .FREEPLAY_BOTTOM_SCROLL ),
1016
+ Control .FREEPLAY_TOP_SCROLL => getDefaultGamepadBinds (Control .FREEPLAY_TOP_SCROLL ),
987
1017
Control .VOLUME_UP => getDefaultGamepadBinds (Control .VOLUME_UP ),
988
1018
Control .VOLUME_DOWN => getDefaultGamepadBinds (Control .VOLUME_DOWN ),
989
1019
Control .VOLUME_MUTE => getDefaultGamepadBinds (Control .VOLUME_MUTE ),
@@ -1041,6 +1071,10 @@ class Controls extends FlxActionSet
1041
1071
return [RIGHT_SHOULDER ];
1042
1072
case Control .FREEPLAY_CHAR_SELECT :
1043
1073
return [X ];
1074
+ case Control .FREEPLAY_BOTTOM_SCROLL :
1075
+ return [];
1076
+ case Control .FREEPLAY_TOP_SCROLL :
1077
+ return [];
1044
1078
case Control .VOLUME_UP :
1045
1079
[];
1046
1080
case Control .VOLUME_DOWN :
@@ -1620,6 +1654,8 @@ enum Control
1620
1654
FREEPLAY_LEFT ;
1621
1655
FREEPLAY_RIGHT ;
1622
1656
FREEPLAY_CHAR_SELECT ;
1657
+ FREEPLAY_BOTTOM_SCROLL ;
1658
+ FREEPLAY_TOP_SCROLL ;
1623
1659
// WINDOW
1624
1660
#if FEATURE_SCREENSHOTS WINDOW_SCREENSHOT ; #end
1625
1661
WINDOW_FULLSCREEN ;
@@ -1677,6 +1713,8 @@ enum abstract Action(String) to String from String
1677
1713
var FREEPLAY_LEFT = " freeplay_left" ;
1678
1714
var FREEPLAY_RIGHT = " freeplay_right" ;
1679
1715
var FREEPLAY_CHAR_SELECT = " freeplay_char_select" ;
1716
+ var FREEPLAY_BOTTOM_SCROLL = " freeplay_bottom_scroll" ;
1717
+ var FREEPLAY_TOP_SCROLL = " freeplay_top_scroll" ;
1680
1718
// VOLUME
1681
1719
var VOLUME_UP = " volume_up" ;
1682
1720
var VOLUME_DOWN = " volume_down" ;
0 commit comments