process pending input events
| 2878 | |
| 2879 | // process pending input events |
| 2880 | void processInputEvents(float maxProcessingTime) { |
| 2881 | if (mainWindow && display) { |
| 2882 | BzTime start = BzTime::getCurrent(); |
| 2883 | while (display->isEventPending() && |
| 2884 | !CommandsStandard::isQuit() && |
| 2885 | (BzTime::getCurrent() - start < maxProcessingTime)) { |
| 2886 | // process one event |
| 2887 | doEvent(display); |
| 2888 | } |
| 2889 | } |
| 2890 | } |
| 2891 | |
| 2892 | |
| 2893 | static void updateExplosions(float dt) { |
no test coverage detected