Expands circular stick range to full square (prevents diagonal under-reach)
| 342 | left = fminf(left, 1.0f); |
| 343 | right = fminf(right, 1.0f); |
| 344 | SDL_RumbleGamepad(g, (uint16_t)(left * 65535.f), (uint16_t)(right * 65535.f), 50); |
| 345 | } |
| 346 | }; |
| 347 | static SDLRumble sRumble; |
| 348 | |
| 349 | void SDLGamepad_SetEngine(float mag) |
| 350 | { |
| 351 | sRumble.SetEngine(mag); |
| 352 | } |
| 353 | void SDLGamepad_PlayRamp(float beg, float end, float dur) |
| 354 | { |
| 355 | sRumble.PlayRamp(beg, end, dur); |
| 356 | } |
| 357 |
no outgoing calls
no test coverage detected