How to convert a character to key code?
Posted
by Murat
on Stack Overflow
See other posts from Stack Overflow
or by Murat
Published on 2010-05-24T17:12:46Z
Indexed on
2010/05/24
17:21 UTC
Read the original article
Hit count: 298
Hello everyone,
How can I convert backslash key ('\') to key code?
On my keyboard backslash code is 220, but the method below
(int)'\\'
returns me 92.
I need some generic conversion like
int ConvertCharToKeyValue(char c)
{
// some code here...
}
Any ideas?
© Stack Overflow or respective owner