MCPcopy Create free account
hub / github.com/SFML/SFML / clearValues

Method clearValues

examples/joystick/Joystick.cpp:142–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140 }
141
142 void clearValues()
143 {
144 m_present = false;
145
146 // Reset displayed joystick values to empty
147 for (auto& [label, joystickObject] : m_texts)
148 joystickObject.value.setString("N/A");
149
150 auto& [label, value] = m_texts.at("ID");
151 label.setString("<Not Connected>");
152 value.setString("");
153 }
154
155 void draw(sf::RenderWindow& window, const sf::RenderStates& states = sf::RenderStates::Default) const
156 {

Callers 1

mainFunction · 0.80

Calls 1

setStringMethod · 0.45

Tested by

no test coverage detected