///////////////////////////////////////////////////////
| 179 | |
| 180 | //////////////////////////////////////////////////////////// |
| 181 | void 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 | //////////////////////////////////////////////////////////// |