Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save marchbold/a387471e0f91684cb8723cdc8cd7cc9e to your computer and use it in GitHub Desktop.
Save marchbold/a387471e0f91684cb8723cdc8cd7cc9e to your computer and use it in GitHub Desktop.
Keyboard information from the Application ANE
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