So the enter key is vk_enter.
what is the Constant of "\"
The UTF8 code of it is 220.
Im using this in a switch statement like so:
but it gives the error of needing the Case to be a Constant.
I cant use
because it turns the whole line into a string.
So how do I write it so that I can get a input for pressing the "\" key
what is the Constant of "\"
Im using this in a switch statement like so:
Code:
switch(keyboard_lastchar) //what to do based on certain keys
{
case(ord(220)) : text += "\\"; break;
default: text += keyboard_lastchar; break;
}
I cant use
Code:
ord("\")
So how do I write it so that I can get a input for pressing the "\" key
Last edited: