Merge branch 'main' into fontlib

This commit is contained in:
georgemoralis 2026-01-12 17:43:52 +02:00 committed by GitHub
commit 2113de96f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -70,7 +70,7 @@ void EmulateJoystick(GameController* controller, u32 interval) {
SDL_GetRelativeMouseState(&d_x, &d_y);
float output_speed =
SDL_clamp((sqrt(d_x * d_x + d_y * d_y) + mouse_speed_offset * 128) * mouse_speed,
SDL_clamp(sqrt(d_x * d_x + d_y * d_y) * mouse_speed + mouse_speed_offset * 128,
mouse_deadzone_offset * 128, 128.0);
float angle = atan2(d_y, d_x);