examples/input/03-gamepad-polling: Render axes in blue.
Some checks are pending
Build (All) / Create test plan (push) Waiting to run
Build (All) / level1 (push) Blocked by required conditions
Build (All) / level2 (push) Blocked by required conditions

It's easier to see against white than yellow was.
This commit is contained in:
Ryan C. Gordon 2026-06-19 14:35:10 -04:00
parent 3a1cfbc147
commit d7e25c92c0
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