Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions source/funkin/play/notes/Strumline.hx
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class Strumline extends FlxSpriteGroup

public var noteVibrations:NoteVibrationsHandler = new NoteVibrationsHandler();

final inArrowContorlSchemeMode:Bool = #if mobile (Preferences.controlsScheme == FunkinHitboxControlSchemes.Arrows
final inArrowControlSchemeMode:Bool = #if mobile (Preferences.controlsScheme == FunkinHitboxControlSchemes.Arrows
&& !ControlsHandler.usingExternalInputDevice) #else false #end;

public var isDownscroll:Bool = #if mobile (Preferences.controlsScheme == FunkinHitboxControlSchemes.Arrows
Expand Down Expand Up @@ -229,7 +229,7 @@ class Strumline extends FlxSpriteGroup

var backgroundWidth:Float = KEY_COUNT * Strumline.NOTE_SPACING + BACKGROUND_PAD * 2;
#if mobile
if (inArrowContorlSchemeMode && isPlayer)
if (inArrowControlSchemeMode && isPlayer)
{
backgroundWidth = backgroundWidth * 1.84;
}
Expand All @@ -240,7 +240,7 @@ class Strumline extends FlxSpriteGroup
this.background.scrollFactor.set(0, 0);
this.background.x = -BACKGROUND_PAD;
#if mobile
if (inArrowContorlSchemeMode && isPlayer) this.background.x -= 100;
if (inArrowControlSchemeMode && isPlayer) this.background.x -= 100;
#end
this.add(this.background);

Expand Down Expand Up @@ -1113,7 +1113,7 @@ class Strumline extends FlxSpriteGroup

var trueScale = new FlxPoint(strumlineScale.x, strumlineScale.y);
#if mobile
if (inArrowContorlSchemeMode)
if (inArrowControlSchemeMode)
{
final amplification:Float = (FlxG.width / FlxG.height) / (FlxG.initialWidth / FlxG.initialHeight);
trueScale.set(strumlineScale.x - ((FlxG.height / FlxG.width) * 0.2) * amplification,
Expand Down Expand Up @@ -1300,7 +1300,7 @@ class Strumline extends FlxSpriteGroup
{
var pos:Float = 0;
#if mobile
if (inArrowContorlSchemeMode && isPlayer) pos = 35 * (FlxG.width / FlxG.height) / (FlxG.initialWidth / FlxG.initialHeight);
if (inArrowControlSchemeMode && isPlayer) pos = 35 * (FlxG.width / FlxG.height) / (FlxG.initialWidth / FlxG.initialHeight);
#end
return switch (direction)
{
Expand Down
Loading