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

Function ForceClose

Descent3/D3ForceFeedback.cpp:191–204  ·  view source on GitHub ↗

----------------------------------------------------------------- ForceClose Purpose: Shutsdown the Hi-Level Force Feedback system -----------------------------------------------------------------

Source from the content-addressed store, hash-verified

189// Shutsdown the Hi-Level Force Feedback system
190// -----------------------------------------------------------------
191void ForceClose(void) {
192 if (!D3Force_init)
193 return;
194
195 D3Force_pause = false;
196 D3Force_init = false;
197
198 mprintf(0, "Force: Shutting down high level force feedback\n");
199 ForceEffectsClose();
200
201 for (int i = 0; i < DDIO_FF_MAXEFFECTS; i++) {
202 Force_hi_to_low_map[i] = -1;
203 }
204}
205
206// -----------------------------------------------------------------
207// ForceShutdown

Callers 3

GameToEditorFunction · 0.85
EditorToGameFunction · 0.85
ForceShutdownFunction · 0.85

Calls 1

ForceEffectsCloseFunction · 0.85

Tested by

no test coverage detected