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

Function ForceDisableAutoCenter

Descent3/D3ForceFeedback.cpp:289–295  ·  view source on GitHub ↗

------------------------------------------------------------------ ForceDisableAutoCenter Purpose: Disables autocentering on the joystick ------------------------------------------------------------------

Source from the content-addressed store, hash-verified

287// Disables autocentering on the joystick
288// ------------------------------------------------------------------
289void ForceDisableAutoCenter(void) {
290 if (D3Force_init) {
291 D3Force_auto_center = false;
292
293 ddio_ffjoy_EnableAutoCenter(kJoy1, false);
294 }
295}
296
297// ------------------------------------------------------------------
298// ForceEnableAutoCenter

Callers 3

joystick_settings_dialogFunction · 0.85
ForceInitFunction · 0.85
ForceRestartFunction · 0.85

Calls 1

Tested by

no test coverage detected