Mercurial > sdl-ios-xcode
changeset 4744:34c3e6d69575
Added mouse button click to toggle IMM.
author | dewyatt |
---|---|
date | Tue, 06 Jul 2010 02:00:15 -0400 |
parents | f25518de3ee5 |
children | 0aaa54fbd2bc |
files | EXCLUDE/GLIMM/include/App.hpp EXCLUDE/GLIMM/src/App.cpp |
diffstat | 2 files changed, 12 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/EXCLUDE/GLIMM/include/App.hpp Sun Jul 04 06:15:42 2010 -0400 +++ b/EXCLUDE/GLIMM/include/App.hpp Tue Jul 06 02:00:15 2010 -0400 @@ -19,6 +19,7 @@ virtual void On_Key_Up(int Key); virtual void On_Char(unsigned int Char); virtual void On_Resized(unsigned int Width, unsigned int Height); + virtual void On_Mouse_Button_Down(Mouse_Button Button); private: void Update(); @@ -27,7 +28,7 @@ static const int Width = 800; static const int Height = 600; static const int Bits_Per_Pixel = 32; - static const bool Fullscreen = false; + static const bool Fullscreen = true; Window my_Window; bool my_Done;
--- a/EXCLUDE/GLIMM/src/App.cpp Sun Jul 04 06:15:42 2010 -0400 +++ b/EXCLUDE/GLIMM/src/App.cpp Tue Jul 06 02:00:15 2010 -0400 @@ -57,9 +57,6 @@ case VK_ESCAPE: On_Close(); break; - case VK_TAB: - my_Window.Get_IMM().Toggle(); - break; } } @@ -83,6 +80,16 @@ glLoadIdentity(); } +void App::On_Mouse_Button_Down(Mouse_Button Button) +{ + switch (Button) + { + case Mouse_Button_Left: + my_Window.Get_IMM().Toggle(); + break; + } +} + void App::Update() { Rotation += 0.2f;