From 32563c2048e4d78d05857dc4135c841fedb9f00a Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 8 Nov 2025 13:57:52 -0500 Subject: [PATCH] examples/demo/02-woodeneye-008: use right stick for camera, not left. This matches the standard for console FPS titles. --- examples/demo/02-woodeneye-008/woodeneye-008.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/demo/02-woodeneye-008/woodeneye-008.c b/examples/demo/02-woodeneye-008/woodeneye-008.c index 7c6268e8ef..43f1f72ae9 100644 --- a/examples/demo/02-woodeneye-008/woodeneye-008.c +++ b/examples/demo/02-woodeneye-008/woodeneye-008.c @@ -114,10 +114,10 @@ static void shoot(int shooter, Player players[], int players_len) static void updatePlayerGamepad(Player *player) { if (player->gamepad) { - const int leftx = (int)SDL_GetGamepadAxis(player->gamepad, SDL_GAMEPAD_AXIS_LEFTX); - const int lefty = (int)SDL_GetGamepadAxis(player->gamepad, SDL_GAMEPAD_AXIS_LEFTY); - player->yaw -= leftx * 0x00000800; - player->pitch = SDL_max(-0x40000000, SDL_min(0x40000000, player->pitch - lefty * 0x00000800)); + const int rightx = (int)SDL_GetGamepadAxis(player->gamepad, SDL_GAMEPAD_AXIS_RIGHTX); + const int righty = (int)SDL_GetGamepadAxis(player->gamepad, SDL_GAMEPAD_AXIS_RIGHTY); + player->yaw -= rightx * 0x00000800; + player->pitch = SDL_max(-0x40000000, SDL_min(0x40000000, player->pitch - righty * 0x00000800)); } }