mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-21 05:26:03 +00:00
examples/input/03-gamepad-polling: Render axes in blue.
It's easier to see against white than yellow was.
(cherry picked from commit d7e25c92c0)
This commit is contained in:
parent
76db4ee3e7
commit
929f060b68
3 changed files with 2 additions and 1 deletions
|
|
@ -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 |
Binary file not shown.
|
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 47 KiB |
Loading…
Add table
Add a link
Reference in a new issue