Page 1 of 1

Key Press

Posted: Mon Jan 30, 2012 1:01 am
by ncmac
This may sound strange, but I am struggling with trapping a virtual alphanumeric key press in iOS. It has to do with a BlueTooth accessory sending a key press, such as “1” or “2” which will activate a script. I have been working with keyUp and rawKeyUp, but no luck in iOS. Would anyone have any suggestions? Thanks in advance!

Re: Key Press

Posted: Mon Jan 30, 2012 3:32 am
by Dixie
Hi...

You could use a UITextfield to catch the input and take advantage of the message 'inputTextChanged' that is sent when text is entered in the field... grab what you entered, do what you have to do and then empty the UITextField waiting for the next 1 or 2... page 57 of the iOS release notes...

be well

Dixie

I have attached a stack that catches the input...

Re: Key Press

Posted: Tue Jan 31, 2012 10:26 pm
by ncmac
Thanks! I appreciate your help.