Giter VIP home page Giter VIP logo

mobiledisplay's Introduction

MobileDisplay

Manage the mobile display & detect virtual keyboard appearance

  • Lets you keep the screen on indefinitely.

  • Detects and triggers events when the virtual keyboard pops up & down.

  • Simulates a soft keyboard display element for non-mobile devices.

Acknowledgements

Dependencies

  • This extension implicitly includes extensionkit which must be available in a folder beside this one.

Installation

git clone https://github.com/bazzisoft-openfl-extensions/extensionkit
git clone https://github.com/bazzisoft-openfl-extensions/mobiledisplay
lime rebuild extensionkit [linux|windows|mac|android|ios]
lime rebuild mobiledisplay [linux|windows|mac|android|ios]

Usage

project.xml

<include path="/path/to/extensionkit" />
<include path="/path/to/mobiledisplay" />

Haxe

class Main extends Sprite
{
	public function new()
    {
		super();

        MobileDisplay.Initialize();

        stage.addEventListener(MobileKeyboardPopupEvent.KEYBOARD_ACTIVATED, function(e) { trace(e); } );
        stage.addEventListener(MobileKeyboardPopupEvent.KEYBOARD_DEACTIVATED, function(e) { trace(e); } );

        MobileDisplay.KeepScreenOn(true);

        #if !mobile
        addChild(new TouchKeyboardSimulator(stage.stageWidth, stage.stageHeight));
        #end

        ...
    }
}

mobiledisplay's People

Contributors

bazzisoft avatar theavenuetoff avatar murilocadanus avatar

Watchers

 avatar Josh Buckley avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.