Just tried to make a bit of code that would trigger when Alt is pressed, but the engine doesn't seem to let me do so. Is this by design or is it a bug ?
Have you tried with "On touched"?
On Touched is not a event that the Keyboard object can do.
Sorry I wanted say: on key released...
emoaeden
you could try this, same problem and this got me around it...
In the window where you select which key to use Hold in CTRL then press ALT, it'll goto CTRL first then it should change to ALT for you
Develop games in your browser. Powerful, performant & highly capable.
Ometheu : That did the trick, thanks !
No worries, glad it helped
Some care might be needed in using alt with (some ?) web browsers.
when I tried something like
when alt key is down ..do something
then it only appeared to work every other press. (No problem in node webkit but chrome didn't like it)
Good luck.
Yeah, It's not really good practice
Alt key is generally reserved for program functions and the sort i believe, I wouldn't use it for anything public, plus I think on a mac in nodekit it does some weird stuff, so does the Ctrl key aswell I think.
I'm intending to only use the Alt + (Letter) for a the PC export function. [:)]
Thanks for the hint with ctrl+alt to get alt working —
But it sounds like a bug that it does not work otherwise. Maybe Ashley could take a look at it?