| 18 | } |
| 19 | |
| 20 | void Button::input(const sf::Event& e) |
| 21 | { |
| 22 | if (touchingMouse(m_quad)) |
| 23 | { |
| 24 | m_quad.setFillColor(sf::Color::Blue); |
| 25 | } |
| 26 | else |
| 27 | { |
| 28 | m_quad.setFillColor(sf::Color::White); |
| 29 | } |
| 30 | |
| 31 | if(clicked(m_quad, e)) |
| 32 | { |
| 33 | m_function(); |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | void Button::update() |
| 38 | { } |
nothing calls this directly
no outgoing calls
no test coverage detected