From c159d07116777b042056114a9195f75c10fd2bf0 Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Mon, 13 Apr 2009 07:01:51 +0000 Subject: [PATCH] Convert keycode to character --- Src/VirtualKeyboard.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Src/VirtualKeyboard.h b/Src/VirtualKeyboard.h index a568273..3fd4309 100644 --- a/Src/VirtualKeyboard.h +++ b/Src/VirtualKeyboard.h @@ -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: