| 366 | } |
| 367 | |
| 368 | void CInput::ConsumeEvents(std::function<void(const CEvent &Event)> Consumer) const |
| 369 | { |
| 370 | for(const CEvent &Event : m_vInputEvents) |
| 371 | { |
| 372 | // Only propagate valid input events |
| 373 | if(Event.m_InputCount == m_InputCounter) |
| 374 | { |
| 375 | Consumer(Event); |
| 376 | } |
| 377 | } |
| 378 | } |
| 379 | |
| 380 | void CInput::Clear() |
| 381 | { |