------------------------------------------------------------------ ForceSetGain Purpose: Sets the gain of the ForceFeedback system (0 -> 1) ------------------------------------------------------------------
| 327 | // Sets the gain of the ForceFeedback system (0 -> 1) |
| 328 | // ------------------------------------------------------------------ |
| 329 | void ForceSetGain(float val) { |
| 330 | if (val < 0.0f) |
| 331 | val = 0.0f; |
| 332 | if (val > 1.0f) |
| 333 | val = 1.0f; |
| 334 | |
| 335 | D3Force_gain = val; |
| 336 | ddio_ffjoy_SetGain(kJoy1, D3Force_gain); |
| 337 | } |
| 338 | |
| 339 | // ------------------------------------------------------------------ |
| 340 | // ForceGetGain |
no test coverage detected