Skip to main content
Participant
May 24, 2014
Question

Air for iOS 7 App - Listen for wireless Keyboard events

  • May 24, 2014
  • 1 reply
  • 280 views

Greetings i've been reviewing this older posting relating to the same problem that I have, but cannot surmise the solution from the thread. Could someone help point me in the right direction?

https://forums.adobe.com/message/5618417

I've built a flash ios app that relies on the input from 5 keys to function. I'm using Flash CS6 and AIR 13.0.0.111 for iOS. The app wont recognize the input from my bluetooth keyboard though.

This code works until loaded onto the iPhone:

stage.addEventListener(KeyboardEvent.KEY_DOWN, ScrollDown);

function ScrollDown(e:KeyboardEvent):void{

if (e.keyCode == 83){

}

I guess in need to use a event.CHANGE listener but I can't find any similar tutorials to follow.

Any help would be greatly appreciated.

This topic has been closed for replies.

1 reply

User Unknow
Legend
May 25, 2014

I don't know how wireless keyboard work for iDevices...

Try to add StageText, tap on it and try to edit text using your keyboard. Could StageText hook keyboard input?