Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool Engine::Update()
- {
- MSG msg;
- bool result;
- // Initialize the message structure
- ZeroMemory(&msg, sizeof(MSG));
- // Handle the windows messages
- if(PeekMessageW(&msg, NULL, 0, 0, PM_REMOVE))
- {
- TranslateMessage(&msg);
- DispatchMessageW(&msg);
- }
- // If windows signals to end the application then exit out
- if(msg.message == WM_QUIT) { return false; }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment