PROBLEM: Construct 2 can't detect symbols like: a î ? ?
WHY?: Construct 2 uses only last key code to detect last key pressed. This is 0 for all special symbols above
SOLUTION:
http://javascript.info/tutorial/keyboard-events
From this url:
[quote:1i5nfre7]The only event which reliably provides the character is keypress.
So here’s the function to get all a symbol from keypress event:
// event.type must be keypress
function getChar(event) {
if (event.which == null) {
return String.fromCharCode(event.keyCode) // IE
} else if (event.which!=0 && event.charCode!=0) {
return String.fromCharCode(event.which) // the rest
} else {
return null // special key
}
}[/code:1i5nfre7]
I would like to request that this would be implement in Construct 2 as a keyboard expression: Keyboard.lastsymbolpressed.
I hope this is not to hard to implement