Fix a crash issue caused when pressing a key after leaving the input offsets state.

This commit is contained in:
EliteMasterEric 2024-04-10 21:32:08 -04:00
parent e0721b901e
commit c3ba4081f1

View file

@ -96,24 +96,6 @@ class LatencyState extends MusicBeatSubState
localConductor.forceBPM(60);
FlxG.stage.addEventListener(KeyboardEvent.KEY_DOWN, key -> {
trace(key.charCode);
// if (key.charCode == 120) generateBeatStuff();
trace("\tEVENT PRESS: \t" + FlxG.sound.music.time + " " + Timer.stamp());
// trace(FlxG.sound.music.prevTimestamp);
trace(FlxG.sound.music.time);
trace("\tFR FR PRESS: \t" + swagSong.getTimeWithDiff());
// trace("\tREDDIT: \t" + swagSong.frfrTime + " " + Timer.stamp());
@:privateAccess
trace("\tREDDIT: \t" + FlxG.sound.music._channel.position + " " + Timer.stamp());
// trace("EVENT LISTENER: " + key);
});
// funnyStatsGraph.hi
Conductor.instance.forceBPM(60);
diffGrp = new FlxTypedGroup<FlxText>();