mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-21 10:43:36 +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:
@@ -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 |
Reference in New Issue
Block a user