| 153 | } |
| 154 | |
| 155 | void DInputSource::Shutdown() |
| 156 | { |
| 157 | while (!m_controllers.empty()) |
| 158 | { |
| 159 | const u32 index = static_cast<u32>(m_controllers.size() - 1); |
| 160 | InputManager::OnInputDeviceDisconnected({{.source_type = InputSourceType::DInput, .source_index = index}}, |
| 161 | GetDeviceIdentifier(index)); |
| 162 | m_controllers.pop_back(); |
| 163 | } |
| 164 | |
| 165 | m_toplevel_window = nullptr; |
| 166 | m_dinput.reset(); |
| 167 | m_dinput_module.reset(); |
| 168 | } |
| 169 | |
| 170 | bool DInputSource::IsInitialized() |
| 171 | { |
no test coverage detected