diff --git a/flixel/FlxCamera.hx b/flixel/FlxCamera.hx index 118b3a601..7907da3c8 100644 --- a/flixel/FlxCamera.hx +++ b/flixel/FlxCamera.hx @@ -1676,9 +1676,7 @@ class FlxCamera extends FlxBasic final targetGraphics = (graphics == null) ? canvas.graphics : graphics; - #if (openfl > "8.7.0") targetGraphics.overrideBlendMode(null); - #end targetGraphics.beginFill(Color, FxAlpha); // i'm drawing rect with these parameters to avoid light lines at the top and left of the camera, // which could appear while cameras fading diff --git a/flixel/system/macros/FlxDefines.hx b/flixel/system/macros/FlxDefines.hx index 1927d1ad8..58d00c41e 100644 --- a/flixel/system/macros/FlxDefines.hx +++ b/flixel/system/macros/FlxDefines.hx @@ -237,6 +237,8 @@ class FlxDefines if (!defined("flash") || defined("flash11_8")) define(FLX_GAMEINPUT_API); + else if (!defined("openfl_next") && (defined("cpp") || defined("neko"))) + define(FLX_JOYSTICK_API); #if nme define(FLX_JOYSTICK_API);