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

Method cleanupDInput

src/SFML/Window/Win32/JoystickImpl.cpp:445–457  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

443
444////////////////////////////////////////////////////////////
445void JoystickImpl::cleanupDInput()
446{
447 // Release the DirectInput interface
448 if (directInput)
449 {
450 directInput->Release();
451 directInput = nullptr;
452 }
453
454 // Unload dinput8.dll
455 if (dinput8dll)
456 FreeLibrary(dinput8dll);
457}
458
459
460////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected