MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Dispose

Method Dispose

Source/Engine/Input/Input.cpp:1302–1321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1300}
1301
1302void 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}

Callers

nothing calls this directly

Calls 3

DeleteObjectMethod · 0.80
CountMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected