| 31 | { } |
| 32 | |
| 33 | void Toggle_Bool::input() |
| 34 | { |
| 35 | if (m_toggleDelay.asMilliseconds() < |
| 36 | m_toggleTimer.getElapsedTime().asMilliseconds()) |
| 37 | { |
| 38 | if (sf::Keyboard::isKeyPressed(m_toggleKey)) |
| 39 | { |
| 40 | *m_pValue = !*m_pValue; |
| 41 | m_toggleTimer.restart(); |
| 42 | } |
| 43 | } |
| 44 | } |
| 45 |
nothing calls this directly
no outgoing calls
no test coverage detected