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

Method close

src/SFML/Window/Android/JoystickImpl.cpp:181–189  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

179
180////////////////////////////////////////////////////////////
181void JoystickImpl::close()
182{
183 ActivityStates& states = getActivity();
184 const std::lock_guard lock(states.mutex);
185
186 if (m_currentDeviceIdx)
187 states.joystickStates.erase(*m_currentDeviceIdx);
188 m_currentDeviceIdx.reset();
189}
190
191
192////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 2

eraseMethod · 0.80
resetMethod · 0.80

Tested by

no test coverage detected