Skip to content

Instantly share code, notes, and snippets.

View IBwWG's full-sized avatar

KJB IBwWG

View GitHub Profile
@leoncvlt
leoncvlt / FlxImmersive.md
Last active November 16, 2019 15:11
Immersive Sticky Mode Android Haxeflixel

Using Immersive Sticky Mode (Android 4.4+)

The Immersive Mode on Android hides all system bars when the app is running, thus giving you access to the full width and height of the screen (this is useful for getting integer aspect ration when zooming).First you have to find the the template GameActivity.java file that the system uses to generate the apps code. Usually it is located at HaxeToolkit\haxe\lib\lime[currentVersion]\templates\android\template\src\org\haxe\lime then modify it to include

import android.view.KeyEvent; 

in the imports field, and