Dispatch pending windows events
| 664 | // Dispatch pending windows events |
| 665 | // |
| 666 | void DispatchEvents(void) |
| 667 | { |
| 668 | MSG msg; |
| 669 | int counter=0; |
| 670 | while(PeekMessage(&msg,nullptr,0,0, PM_REMOVE)) |
| 671 | { |
| 672 | TranslateMessage(&msg); |
| 673 | DispatchMessage(&msg); |
| 674 | counter++; |
| 675 | if (counter==256) // just in case |
| 676 | break; |
| 677 | } |
| 678 | } |
| 679 | |
| 680 | // |
| 681 | // Check for patches |