Added On_Char method to Window_Listener for WM_CHAR messages.

Removed a lot of TSF code because part of it was wrong and part was too complicated.
Added Clear method to clear the window.

IME input should work in both windowed mode and fullscreen mode with these changes.
I have tested on Windows XP SP3 and Windows 7 Ultimate in VirtualBox.
When you type a character (with an IME or not), the console will show the code point as U+XXXX.
You use Left Alt+Shift (or whatever you have it set to) to switch input languages as usual.
Hit ESC to exit (or close the window in windowed mode).
The program will pause before exiting so you can review the console output (press a key to exit).
This commit is contained in:
dewyatt 2010-06-09 00:03:54 -04:00
parent 52def78851
commit 649b23090a
8 changed files with 66 additions and 168 deletions

View file

@ -8,6 +8,7 @@
#include "Video_Mode.hpp"
#include "Window_Listener.hpp"
#include "TSF.hpp"
class Window
{
@ -26,6 +27,8 @@ public:
void Update();
void Display();
void Clear();
private:
static const wchar_t *Window_Class_Name;