Convert keycode to character

This commit is contained in:
simon.kagstrom 2009-04-13 07:01:51 +00:00
parent 0680b1d8e0
commit c159d07116

View File

@ -21,6 +21,12 @@ public:
int get_key();
const char *get_string();
const char *keycode_to_string(int kc);
char keycode_to_char(int kc)
{
return this->keycode_to_string(kc)[0];
}
int char_to_keycode(char c);
private: