mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-01-30 08:27:38 +00:00
different timestamping
This commit is contained in:
parent
5e630dc214
commit
c3995ef557
|
@ -8,6 +8,7 @@ import flixel.math.FlxMath;
|
||||||
import flixel.text.FlxText;
|
import flixel.text.FlxText;
|
||||||
import flixel.util.FlxColor;
|
import flixel.util.FlxColor;
|
||||||
import funkin.audiovis.PolygonSpectogram;
|
import funkin.audiovis.PolygonSpectogram;
|
||||||
|
import haxe.Timer;
|
||||||
import openfl.events.KeyboardEvent;
|
import openfl.events.KeyboardEvent;
|
||||||
|
|
||||||
class LatencyState extends MusicBeatSubstate
|
class LatencyState extends MusicBeatSubstate
|
||||||
|
@ -29,7 +30,7 @@ class LatencyState extends MusicBeatSubstate
|
||||||
{
|
{
|
||||||
FlxG.stage.addEventListener(KeyboardEvent.KEY_DOWN, key ->
|
FlxG.stage.addEventListener(KeyboardEvent.KEY_DOWN, key ->
|
||||||
{
|
{
|
||||||
trace("EVENT PRESS: " + FlxG.sound.music.time + " " + Sys.time());
|
trace("EVENT PRESS: " + FlxG.sound.music.time + " " + Timer.stamp());
|
||||||
// trace("EVENT LISTENER: " + key);
|
// trace("EVENT LISTENER: " + key);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -119,7 +120,7 @@ class LatencyState extends MusicBeatSubstate
|
||||||
{
|
{
|
||||||
if (FlxG.keys.justPressed.S)
|
if (FlxG.keys.justPressed.S)
|
||||||
{
|
{
|
||||||
trace("UPDATE PRESS: " + FlxG.sound.music.time + " " + Sys.time());
|
trace("UPDATE PRESS: " + FlxG.sound.music.time + " " + Timer.stamp());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FlxG.keys.justPressed.X)
|
if (FlxG.keys.justPressed.X)
|
||||||
|
|
Loading…
Reference in a new issue