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

Function ForceEnableAutoCenter

Descent3/D3ForceFeedback.cpp:302–308  ·  view source on GitHub ↗

------------------------------------------------------------------ ForceEnableAutoCenter Purpose: Enables autocentering on the joystick ------------------------------------------------------------------

Source from the content-addressed store, hash-verified

300// Enables autocentering on the joystick
301// ------------------------------------------------------------------
302void ForceEnableAutoCenter(void) {
303 if (D3Force_init) {
304 D3Force_auto_center = true;
305
306 ddio_ffjoy_EnableAutoCenter(kJoy1, true);
307 }
308}
309
310// ------------------------------------------------------------------
311// ForceIsEnabled

Callers 3

joystick_settings_dialogFunction · 0.85
ForceInitFunction · 0.85
ForceRestartFunction · 0.85

Calls 1

Tested by

no test coverage detected