Ember

update

Feb 20th, 2014
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. bool Engine::Update()
  2.     {
  3.         MSG msg;
  4.         bool result;
  5.  
  6.         // Initialize the message structure
  7.         ZeroMemory(&msg, sizeof(MSG));
  8.  
  9.         // Handle the windows messages
  10.         if(PeekMessageW(&msg, NULL, 0, 0, PM_REMOVE))
  11.         {
  12.             TranslateMessage(&msg);
  13.             DispatchMessageW(&msg);
  14.         }
  15.  
  16.         // If windows signals to end the application then exit out
  17.         if(msg.message == WM_QUIT) { return false; }
  18.  
  19.         return true;
  20.     }
Advertisement
Add Comment
Please, Sign In to add comment