diff --git a/flixel/system/replay/FlxReplay.hx b/flixel/system/replay/FlxReplay.hx index 8b4fdbbda..c91ba3b35 100644 --- a/flixel/system/replay/FlxReplay.hx +++ b/flixel/system/replay/FlxReplay.hx @@ -166,6 +166,7 @@ class FlxReplay continueFrame = false; #end + #if FLX_GAMEINPUT_API var gamepadRecords:Array = new Array(); for (gamepad in FlxG.gamepads.getActiveGamepads()) { @@ -176,6 +177,7 @@ class FlxReplay continueFrame = false; } } + #end if (continueFrame) { @@ -190,7 +192,9 @@ class FlxReplay #if FLX_KEYBOARD frameRecorded.keys = keysRecord; #end + #if FLX_GAMEINPUT_API frameRecorded.gamepad = gamepadRecords; + #end _frames[frameCount++] = frameRecorded; @@ -235,6 +239,7 @@ class FlxReplay FlxG.mouse.playback(fr.mouse); } #end + #if FLX_GAMEINPUT_API if (fr.gamepad != null) { for (record in fr.gamepad) @@ -255,6 +260,7 @@ class FlxReplay gamepad.playback(record); } } + #end } /**