| 128 | } |
| 129 | |
| 130 | void updateValues() |
| 131 | { |
| 132 | m_present = sf::Joystick::isConnected(m_index); |
| 133 | if (m_present) |
| 134 | { |
| 135 | // Update the label-value sf::Text objects based on the current joystick state |
| 136 | updateIdentification(); |
| 137 | updateAxes(); |
| 138 | updateButtons(); |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | void clearValues() |
| 143 | { |