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

Method updateIdentification

examples/joystick/Joystick.cpp:96–103  ·  view source on GitHub ↗

Update joystick identification

Source from the content-addressed store, hash-verified

94
95 // Update joystick identification
96 void updateIdentification()
97 {
98 auto sstr = getStream();
99 sstr << "Joystick " << m_index << ":";
100 auto& [label, value] = m_texts.at("ID");
101 label.setString(sstr.str());
102 value.setString(sf::Joystick::getIdentification(m_index).name);
103 }
104
105 // Update joystick axes
106 void updateAxes()

Callers

nothing calls this directly

Calls 3

getStreamFunction · 0.85
getIdentificationFunction · 0.85
setStringMethod · 0.45

Tested by

no test coverage detected