| 583 | } |
| 584 | |
| 585 | void CWindow::CreateTimer(uint32_t id, int delay) |
| 586 | { |
| 587 | assert(id > 0 && id < countof(timer_table)); |
| 588 | if (timer_table[id - 1] != 0) |
| 589 | { |
| 590 | return; |
| 591 | } |
| 592 | |
| 593 | auto handle = SDL_AddTimer(delay, TimerCallbackEventPusher, (void *)(intptr_t)(id)); |
| 594 | timer_table[id - 1] = handle; |
| 595 | } |
| 596 | |
| 597 | void CWindow::RemoveTimer(uint32_t id) |
| 598 | { |
no test coverage detected