Commit 56aecc48 authored by dewyatt's avatar dewyatt

Added mouse button click to toggle IMM.

parent 71f0192c
...@@ -19,6 +19,7 @@ public: ...@@ -19,6 +19,7 @@ public:
virtual void On_Key_Up(int Key); virtual void On_Key_Up(int Key);
virtual void On_Char(unsigned int Char); virtual void On_Char(unsigned int Char);
virtual void On_Resized(unsigned int Width, unsigned int Height); virtual void On_Resized(unsigned int Width, unsigned int Height);
virtual void On_Mouse_Button_Down(Mouse_Button Button);
private: private:
void Update(); void Update();
...@@ -27,7 +28,7 @@ private: ...@@ -27,7 +28,7 @@ private:
static const int Width = 800; static const int Width = 800;
static const int Height = 600; static const int Height = 600;
static const int Bits_Per_Pixel = 32; static const int Bits_Per_Pixel = 32;
static const bool Fullscreen = false; static const bool Fullscreen = true;
Window my_Window; Window my_Window;
bool my_Done; bool my_Done;
......
...@@ -57,9 +57,6 @@ void App::On_Key_Down(int Key) ...@@ -57,9 +57,6 @@ void App::On_Key_Down(int Key)
case VK_ESCAPE: case VK_ESCAPE:
On_Close(); On_Close();
break; break;
case VK_TAB:
my_Window.Get_IMM().Toggle();
break;
} }
} }
...@@ -83,6 +80,16 @@ void App::On_Resized(unsigned int Width, unsigned int Height) ...@@ -83,6 +80,16 @@ void App::On_Resized(unsigned int Width, unsigned int Height)
glLoadIdentity(); 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() void App::Update()
{ {
Rotation += 0.2f; Rotation += 0.2f;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment