From 09257471cd6b98b80da892bf386953a2e4f7cf78 Mon Sep 17 00:00:00 2001 From: PgSocks Date: Fri, 8 Sep 2023 12:45:42 -0500 Subject: [PATCH] Simulate friction for mouse controls --- src/sdl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sdl.c b/src/sdl.c index f4e6d95..e4d68bf 100644 --- a/src/sdl.c +++ b/src/sdl.c @@ -189,6 +189,8 @@ int main(int argc, char* argv[]) { robot_stop(robot); default: break; } + yaw = (int)(yaw * 0.89); + pitch = (int)(pitch * 0.89); } }