From ed38a2104f3b087c4936b28f69d263c0a8d68bec Mon Sep 17 00:00:00 2001 From: George FunBook Date: Wed, 3 Apr 2024 15:39:28 -0500 Subject: [PATCH] style --- flixel/input/keyboard/FlxKeyboard.hx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/flixel/input/keyboard/FlxKeyboard.hx b/flixel/input/keyboard/FlxKeyboard.hx index c70ddc1f07..a21a40fe73 100644 --- a/flixel/input/keyboard/FlxKeyboard.hx +++ b/flixel/input/keyboard/FlxKeyboard.hx @@ -168,16 +168,16 @@ class FlxKeyboard extends FlxKeyManager * @param Record Array of data about key states. */ @:allow(flixel.system.replay.FlxReplay) - function playback(Record:Array):Void + function playback(record:Array):Void { - var i:Int = 0; - var l:Int = Record.length; + var i = 0; + final len = record.length; - while (i < l) + while (i < len) { - var o = Record[i++]; - var o2 = getKey(o.code); - o2.current = o.value; + final keyRecord = record[i++]; + final key = getKey(keyRecord.code); + key.current = keyRecord.value; } } }