| 1300 | } |
| 1301 | |
| 1302 | void InputService::Dispose() |
| 1303 | { |
| 1304 | // Dispose input devices |
| 1305 | if (Input::Mouse) |
| 1306 | { |
| 1307 | Input::Mouse->DeleteObject(); |
| 1308 | Input::Mouse = nullptr; |
| 1309 | } |
| 1310 | if (Input::Keyboard) |
| 1311 | { |
| 1312 | Input::Keyboard->DeleteObject(); |
| 1313 | Input::Keyboard = nullptr; |
| 1314 | } |
| 1315 | for (int32 i = 0; i < Input::Gamepads.Count(); i++) |
| 1316 | Input::Gamepads[i]->DeleteObject(); |
| 1317 | Input::Gamepads.Clear(); |
| 1318 | for (int32 i = 0; i < Input::CustomDevices.Count(); i++) |
| 1319 | Input::CustomDevices[i]->DeleteObject(); |
| 1320 | Input::CustomDevices.Clear(); |
| 1321 | } |
nothing calls this directly
no test coverage detected