Skip to main content
Inspiring
Jan 25, 2013 2:57 PM UTC
Question

listen Keyboard events in AIR for iOS? [HELP]

It works in the browser...  Is there any way in AIR to do this for iOS ?

This topic is closed to new replies. Start a new post to keep the conversation going.

39 replies

Participant
Dec 15, 2018 12:43 AM UTC

Did anyone solve this in any other way ..still having this issue.. seem so trivial and debilitating surprised it's not more documented.

Translate
Applauz78Author
Inspiring
Jan 25, 2013 4:09 PM UTC

Is there really no way to listen to keyboard events in AIR for IOS from the stage ?

I need to listen for events from a bluetooth keyboard.

This seems so basic.  ... 

Has anyone run in to this issue ?

Translate
Colin Holgate
Inspiring
Jan 25, 2013 4:12 PM UTC

Are you using a Flash textfield, or a native input field (that is, StageText)? If it's the native input field then I don't think there's any hope of an AS3 listener intercepting the value.

Translate
Applauz78Author
Inspiring
Jan 25, 2013 4:18 PM UTC

Neither.

This is for a game.  i'm using the iCade. which is basically a bluetooth keyboard. A class was written to handle the listening of the keys.  ie/ 

stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown, false, 1000);

stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUp, false, 1000);

These are ignored in iOS

So I'm not using a textField.. I was hoping to listen from the stage for the key presses.

Translate