MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / ForceShutdown

Function ForceShutdown

Descent3/D3ForceFeedback.cpp:212–220  ·  view source on GitHub ↗

----------------------------------------------------------------- ForceShutdown Purpose: Puts the Force Feedback system on pause while the application is doing other things (like it lost focus) -----------------------------------------------------------------

Source from the content-addressed store, hash-verified

210// is doing other things (like it lost focus)
211// -----------------------------------------------------------------
212void ForceShutdown(void) {
213 D3Force_pause = true;
214
215 ForceClose();
216 if (D3Force_init) {
217 mprintf(0, "Force: Shutting down Force Feedback System\n");
218 ddio_ffb_Pause(kJoy1);
219 }
220}
221
222// ------------------------------------------------------------------
223// ForceRestart

Callers 1

ShutdownD3Function · 0.85

Calls 2

ForceCloseFunction · 0.85
ddio_ffb_PauseFunction · 0.85

Tested by

no test coverage detected