examples/input/03-gamepad-polling: Render axes in blue.
Some checks failed
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled

It's easier to see against white than yellow was.

(cherry picked from commit d7e25c92c0)
This commit is contained in:
Ryan C. Gordon 2026-06-19 14:35:10 -04:00
parent 76db4ee3e7
commit 929f060b68
No known key found for this signature in database
GPG key ID: FA148B892AB48044
3 changed files with 2 additions and 1 deletions

View file

@ -158,7 +158,8 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
}
SDL_SetRenderDrawColor(renderer, 0xFF, 0xFF, 0x00, 0xFF); /* yellow */
/* draw axes in blue. */
SDL_SetRenderDrawColor(renderer, 0x00, 0x00, 0xFF, 0xFF); /* blue */
/* left thumb axis. */
axis_x = SDL_GetGamepadAxis(gamepad, SDL_GAMEPAD_AXIS_LEFTX);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 70 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 47 KiB

Before After
Before After