External Keyboard for Text Input?

Hi,

I wonder if anyone can help. I’ve searched round but can’t find an answer…

Is it possible to use an external keyboard with a Corona app and if so, does it depend on the device type etc. I could find anything in the documentation about accepting input from keyboards.

I have an app that allows the user to type quite a lot of text and a lot of our customers have asked about this.

Many thanks,

Ian

I would assume you’re talking about a bluetooth keyboard paired with an iOS or Android device. CoronaSDK doesn’t have support for bluetooth, so you’re app can’t interact directly with the keyboard.

But, I would assume this might be handled by the OS. For example, I have a pair of bluetooth headphones and I don’t have any problem hearing sounds from apps. The apps just play sound as they normally would and the OS knows to send the sound to the headphones.

The only way to know for sure, would be to have someone with a bluetooth keyboard try it and see if it works.

Thanks for the response. The problem I have is that I’m not using the native iOS text input boxes - I’ve built my own so I can customise how it looks a lot more and so I need to pick up which key has been pressed in my LUA code.

Not sure it’s going to be possible… would love to see this functionality added to Corona.

I would assume you’re talking about a bluetooth keyboard paired with an iOS or Android device. CoronaSDK doesn’t have support for bluetooth, so you’re app can’t interact directly with the keyboard.

But, I would assume this might be handled by the OS. For example, I have a pair of bluetooth headphones and I don’t have any problem hearing sounds from apps. The apps just play sound as they normally would and the OS knows to send the sound to the headphones.

The only way to know for sure, would be to have someone with a bluetooth keyboard try it and see if it works.

Thanks for the response. The problem I have is that I’m not using the native iOS text input boxes - I’ve built my own so I can customise how it looks a lot more and so I need to pick up which key has been pressed in my LUA code.

Not sure it’s going to be possible… would love to see this functionality added to Corona.