MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / destroy

Method destroy

Engine/source/platformSDL/sdlInput.cpp:141–154  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

139
140//------------------------------------------------------------------------------
141void Input::destroy()
142{
143 Process::remove(Input::process);
144
145 SDL_QuitSubSystem( SDL_INIT_JOYSTICK | SDL_INIT_HAPTIC | SDL_INIT_GAMECONTROLLER );
146
147 if (smManager)
148 {
149 if (smManager->isEnabled())
150 smManager->disable();
151 delete smManager;
152 smManager = NULL;
153 }
154}
155
156//------------------------------------------------------------------------------
157bool Input::enable()

Callers

nothing calls this directly

Calls 3

SDL_QuitSubSystemFunction · 0.85
isEnabledMethod · 0.45
disableMethod · 0.45

Tested by

no test coverage detected