is there any way that i can register an event for any keypress in the simulator (gideros player)? like the buttons with letters etc everything on a pc keyboard. i need it as I use inhouse with friends on pc (mac, win) the app i made with gideros. it is a real-time drawing-like app and on pc keyboard shortcuts would be much faster and better then clicking on menus. probably i made a mistake when choosing a mobile-oriented framework, but gideros just looked and looks so sympathetic. thus now i'm stuck with hopes for pc export. yet that is in an unforeseeable future, so is there some workaround for keypresses until that time?
if not, then what is the complete list of win/mac keys usable keycodes?
(i note that i won't go into the route of making a plugin for that)
i put this in the requests category as i'm afraid i won't have a fully positive answer thus i request keycodes for all pc keys in a future version (already in next? it should be easy to implement).
thanks
Comments
well yes, here is the list of currently supported keycodes http://docs.giderosmobile.com/reference/gideros/KeyCode#KeyCode
as PC and Mac platforms are not yet officially supported, other keycodes were not added.
Although I have some use for this myself, especially testing games on pc, @atilim is usually against nice to have features, when there are numerous important features to implement. I'll bring that up in conversation, but well, no promises
about current keys, on pc only the last six work? namely
KeyCode.LEFT Left arrow key
KeyCode.UP Up arrow key
KeyCode.RIGHT Right arrow key
KeyCode.DOWN Down arrow key
KeyCode.X X key
KeyCode.Y Y key
? definitely will be not enough for me: (
Fragmenter - animated loop machine and IKONOMIKON - the memory game
I've added almost all keys. But please note that, these map directly to a physical key on the keyboard. I mean when you press shift+2=@, the events will be generated for 'shift' and '2' instead of '@'.
Likes: SinisterSoft, keszegh
looking forward to the next release. physical keys are just perfect for now, currently it is even better as i don't have to care about upper and lower case etc.
Likes: SinisterSoft, dreiko65
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
1) event.keyCode which is Gideros processed keyCode to try to match same values on different platforms
2) event.realCode which is a raw code provided from the paltform
As you see, there is no f1-f12 keycode in KeyCode class:
http://docs.giderosmobile.com/reference/gideros/KeyCode#KeyCode
so the value is not processed by Gideros, but you could try to catch the value in realCode property of event, but it may differ for example on Win and OSX
Likes: keszegh