comparison EXCLUDE/GLIMM/src/Window.cpp @ 4745:0aaa54fbd2bc

Many changes, preparing to pull/merge main repo to get SDL_GetKeyboardFocus.
author dewyatt
date Tue, 06 Jul 2010 02:06:17 -0400
parents 59b0750575b1
children
comparison
equal deleted inserted replaced
4744:34c3e6d69575 4745:0aaa54fbd2bc
29 throw std::runtime_error("Invalid video mode"); 29 throw std::runtime_error("Invalid video mode");
30 30
31 my_Fullscreen = Fullscreen; 31 my_Fullscreen = Fullscreen;
32 Register_Class(); 32 Register_Class();
33 Create_Window(Title, Mode, Fullscreen); 33 Create_Window(Title, Mode, Fullscreen);
34 Show();
34 my_IMM.Initialize(my_Handle); 35 my_IMM.Initialize(my_Handle);
35 } 36 }
36 37
37 void Window::Finalize() 38 void Window::Finalize()
38 { 39 {
294 my_IMM.Focus_Gained(); 295 my_IMM.Focus_Gained();
295 break; 296 break;
296 case WM_KILLFOCUS: 297 case WM_KILLFOCUS:
297 my_IMM.Focus_Lost(); 298 my_IMM.Focus_Lost();
298 break; 299 break;
300 case WM_LBUTTONDOWN:
301 Call_Listener(On_Mouse_Button_Down(Mouse_Button_Left));
302 break;
303 case WM_LBUTTONUP:
304 Call_Listener(On_Mouse_Button_Up(Mouse_Button_Left));
305 break;
306 case WM_RBUTTONDOWN:
307 Call_Listener(On_Mouse_Button_Down(Mouse_Button_Right));
308 break;
309 case WM_RBUTTONUP:
310 Call_Listener(On_Mouse_Button_Up(Mouse_Button_Right));
311 break;
299 default: 312 default:
300 return DefWindowProcW(Handle, Message, wParam, lParam); 313 return DefWindowProcW(Handle, Message, wParam, lParam);
301 break; 314 break;
302 } 315 }
303 return 0; 316 return 0;