The following handle methods are called by the forwarding event handler implementation A handle method is defined per event type you want to handle To handle any other events that are left, the templated handle method will be called Overload resolution will prefer the handle methods that fit the event type better before falling back to the templated method
| 325 | // Overload resolution will prefer the handle methods that fit the event type better |
| 326 | // before falling back to the templated method |
| 327 | void handle(const sf::Event::Closed&) |
| 328 | { |
| 329 | m_window.close(); |
| 330 | } |
| 331 | |
| 332 | void handle(const sf::Event::KeyPressed& keyPress) |
| 333 | { |
nothing calls this directly
no test coverage detected