MCPcopy Create free account
hub / github.com/Hopson97/HopsonCraft / input

Method input

Source/GUI/Imaged_Button.cpp:28–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 }
27
28 void Imaged_Button::input(const sf::Event& e)
29 {
30 if (touchingMouse(m_quad))
31 {
32 m_quad.setFillColor({sf::Color::Blue});
33 }
34 else
35 {
36 m_quad.setFillColor(sf::Color::White);
37 }
38
39 if(clicked(m_quad, e))
40 {
41 m_function();
42 }
43 }
44
45 void Imaged_Button::update()
46 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected