ios app... any ideas how to do this?

Ken Ray kray at sonsothunder.com
Sun Apr 1 11:04:40 EDT 2012


On Apr 1, 2012, at 8:51 AM, Richard Miller wrote:

> Not even sure this is possible.
> 
> I want to create a simple app that can be controlled by an external bluetooth keyboard. I realize there are no functions to support any mouse/cursor-related operations, so this would need to be done differently.
> 
> The only idea I have is to use keyboard input. For example...
> 
> Let's say the app has a video player in it. I want the keyboard to control start, pause and stop.
> 
> I assume that, if a field was open for input, the user could press a key on the bluetooth keyboard... say "S"... after which the LC code would close the onscreen keyboard and start playing the video.
> 
> Is there some way, then, for a press of a key on the bluetooth keyboard to be recognized by the app, without requiring the user to touch the screen and open a field?

Richard, I'm sure that a bluetooth keyboard would act the same as the onscreen keyboard would; that is, it *should* send the keyDown, keyUp, rawKeyDown, and rawKeyUp messages to the current card; you can then trap for this in the card script (or stack script, etc.) and go from there.

Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/	




More information about the use-livecode mailing list