From c3ba4081f1b7231a8dda92da78390db95ad72705 Mon Sep 17 00:00:00 2001 From: EliteMasterEric Date: Wed, 10 Apr 2024 21:32:08 -0400 Subject: [PATCH] Fix a crash issue caused when pressing a key after leaving the input offsets state. --- source/funkin/ui/debug/latency/LatencyState.hx | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/source/funkin/ui/debug/latency/LatencyState.hx b/source/funkin/ui/debug/latency/LatencyState.hx index 9d1bcde71..94f179629 100644 --- a/source/funkin/ui/debug/latency/LatencyState.hx +++ b/source/funkin/ui/debug/latency/LatencyState.hx @@ -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();