Forum Archive

Keyboard when scene is running?

NoneNone94

Can I have keyboard input while a scene is running? Would the keyboard pop up when a scene is running?

NoneNone94

Thnx silverkors. I will use the code. But i think the app must really have a Keyboard input function for the scenes. It is crucial.

I guess it is a good idea to built a thread for all the Feature Requests. Isn't it?

NoneNone94

A good idea would be to have a Keyboard() module (like touch() module) which is assigned to a scene and returns each key which is hit on the keyboard.

As i remember in one of the posts, OMZ described pyhtonista vs codea, as pythonista to be more for building "tools" rather than "games" in Lua. I agree and thatis why I guess keyboard input is crucial since I guess it is much widely used in tools rather than games.

NoneNone94

Dear OMZ

do you think we will have a keyboard module in the next update?

omz

It's certainly something I will consider, but please understand that I usually cannot comment on timeframes for specific (non-trivial) feature requests.

NoneNone94

ok. i understand. thank you. you have already done a great job. you know, i am exploring Pythonista and that's why i post so many questions (one will come in couple of minutes!) and feature requests. but i totally understand that wishing a feature is easy but making it may not be so easy!

as for keyboard, as you also suggested in another post, i use Pythonista for making tools rather than games and, you know, in these sort of apps keyboard input has a crucial role.

anyway, i will wait for the keyboard feature, while enjoying Pythonista.

PS: as i suggested in another post, i think it will be a good idea for the forum to have "Feature Requests" and "Issue Tracker" sections. i guess it will make your work in developing Pythonista easier.

NoneNone94

thnx so much silverkors.

i now don't have access to my idevice. as far as i could check from the class it draws a keyboard using rect and text. it is cool.

actually i am working on a simpler keyboard (just lower-key letters, no numbers).

my approch has been to load the iPhone keyboard pic as png. and for every key you hit it shows a somehow big rectangle of the letter above the key (something like when you hit a key in native iPhone keyboard). so it needs just three layers (keyboard, rectangle image, textlayer of the key you hit).

i will upload it when ready