Forum Archive

Text input in scene application

agatonsax

Is there a way where one can read keyboard input in a Scene application ?
I've made a Scene application and would like to store settings in files under names chosen by the user.

Sebastian

I don't think the keyboard can be accessed from whitin a scene. But you can use the keyboard before the scene starts though. If that's not a solution, I think you will have to create a keyboard yourself.

hvmhvm

I created my own keyboard (using screenshots of the real thing)...

Scatterfelt

Curiously I was working on a program that required this very thing—keyboard during scene (it's a typing game).

I don't think I'm likely to finish it (in Pythonista, that is), but it'd be a neat feature. Screenshotting the keyboard isn't so bad, though.

agatonsax

I feared this! Creating my own keyboard is probably the best worst way of doing it.
Shouldn't be that hard.

ccc

Is someone willing to share their keyboard code on github? This is probably something that multiple people would be interested to have.

ccc

See KeyboardHack.py