TChar comparison

Hey you… I am sending the keys, that the player presses from my ViewportClient-Class to my costum HUD-class and storing it there in a Variable TChar PressedChar

Now I wanna do a “comparison” to see if the currently pressed key is e.g. “Backspace”…

Shall I do it like this?

if (PressedChar == 0x010)
{
     //Do something
}

And if so, is there a list for the correct ASCII-codes of the characters? Thanks in advance!

Greetings,
Braindrain

…no one?

Try casting it maybe?

the method was actually ok… the check for backspace would be:

if (PressedChar == 0x08)

For a list of hex codes I’d refer to:
http://www.bluesock.org/~willg/dev/ascii.html