diff --git a/source/android/AndroidControls.hx b/source/android/AndroidControls.hx index 398e03c16ef..4275028c018 100644 --- a/source/android/AndroidControls.hx +++ b/source/android/AndroidControls.hx @@ -9,7 +9,6 @@ import flixel.math.FlxPoint; - class AndroidControls extends FlxSpriteGroup { public var virtualPad:FlxVirtualPad; public var hitbox:FlxHitbox; @@ -17,6 +16,7 @@ class AndroidControls extends FlxSpriteGroup { public function new() { super(); + cameras = [FlxG.cameras.list[FlxG.cameras.list.length-1]]; switch (AndroidControls.getMode()) { case 0: // RIGHT_FULL diff --git a/source/android/AndroidControlsSettingsSubState.hx b/source/android/AndroidControlsSettingsSubState.hx index b4d37de8d3f..6b50f7d4c6b 100644 --- a/source/android/AndroidControlsSettingsSubState.hx +++ b/source/android/AndroidControlsSettingsSubState.hx @@ -7,11 +7,13 @@ import haxe.Json; import options.BaseOptionsMenu; import options.Option; import openfl.Lib; +import flixel.FlxG; using StringTools; class AndroidControlsSettingsSubState extends BaseOptionsMenu { public function new() { + cameras = [FlxG.cameras.list[FlxG.cameras.list.length-1]]; title = 'Android settings for virtual pads and hitbox'; rpcTitle = 'Virtual pads and hitbox Menu'; diff --git a/source/android/AndroidControlsSubState.hx b/source/android/AndroidControlsSubState.hx index 23a8b4b92f6..657e020cc61 100644 --- a/source/android/AndroidControlsSubState.hx +++ b/source/android/AndroidControlsSubState.hx @@ -51,6 +51,7 @@ class AndroidControlsSubState extends FlxSubState { var velocityBackground:FlxBackdrop; override function create() { + cameras = [FlxG.cameras.list[FlxG.cameras.list.length-1]]; background = new FlxSprite().makeGraphic(FlxG.width, FlxG.height, FlxColor.fromHSB(FlxG.random.int(0, 359), FlxG.random.float(0, 0.8), FlxG.random.float(0.3, 1))); background.alpha = 0.00001; background.scrollFactor.set();