Created
August 23, 2019 04:11
-
-
Save marchbold/a387471e0f91684cb8723cdc8cd7cc9e to your computer and use it in GitHub Desktop.
Keyboard information from the Application ANE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Application.service.keyboard.addEventListener( SoftKeyboardEvent.SOFT_KEYBOARD_DEACTIVATE, keyboard_deactivateHandler ); | |
Application.service.keyboard.addEventListener( SoftKeyboardEvent.SOFT_KEYBOARD_ACTIVATE, keyboard_activateHandler ); | |
function keyboard_activateHandler( event:SoftKeyboardEvent ):void | |
{ | |
var keyboardY:int = Application.service.keyboard.y; | |
var keyboardHeight:int = Application.service.keyboard.height; | |
} | |
function keyboard_deactivateHandler( event:SoftKeyboardEvent ):void | |
{ | |
var keyboardY:int = Application.service.keyboard.y; | |
var keyboardHeight:int = Application.service.keyboard.height; | |
} | |
// com.distriqt.Application |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment