if MouseKeyboard.OnAnyKey():
if MouseKeyboard.OnKey(get.key("key_config","select")):
debug.SetText("select pressed")
elif MouseKeyboard.OnKey(get.key("key_config","cancel")):
debug.SetText("cancel pressed")
But it seems to work only with VK_ keys, according to this post: scirra.com/forum/construct-keyboard-in-python_topic39918.html
That is: I can test for space button, or the Numpad buttons, but no A, S, D keys and so on. Any way to do this?
Thanks in advance!
Edit#2: Well, it seems a light fever helped me find the solution. The keys mentioned in that mapping thread are 0-indexed, so that I had to subtract 1 from every each value I wanted to map. Now it works like a charm, I think.