Nightcap
09-27-2007, 11:08 PM
My code is reading keystrokes using Key.addListener. That works great, but the only way I can convert the Key.getAscii value to a character is by doing it like this:
String.fromCharCode(Key.getAscii())
Is that correct or is there a better way? Am I right that KM doesn't support the 'chr' and 'ord' functions?
String.fromCharCode(Key.getAscii())
Is that correct or is there a better way? Am I right that KM doesn't support the 'chr' and 'ord' functions?