| 836 | } |
| 837 | |
| 838 | void WindowsPlatform::Tick() |
| 839 | { |
| 840 | #if !PLATFORM_SDL |
| 841 | WindowsInput::Update(); |
| 842 | #endif |
| 843 | |
| 844 | // Check to see if any messages are waiting in the queue |
| 845 | MSG msg; |
| 846 | while (PeekMessage(&msg, nullptr, 0, 0, PM_REMOVE)) |
| 847 | { |
| 848 | // Translate the message and dispatch it to WindowProc() |
| 849 | TranslateMessage(&msg); |
| 850 | DispatchMessage(&msg); |
| 851 | } |
| 852 | } |
| 853 | |
| 854 | void WindowsPlatform::BeforeExit() |
| 855 | { |