mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-02 14:22:08 +02:00
Show battery status on screen in testgamepad
This commit is contained in:
@@ -916,6 +916,7 @@ int main(int argc, char *argv[])
|
||||
return 2;
|
||||
}
|
||||
SetGamepadImagePosition(image, PANEL_WIDTH + PANEL_SPACING, TITLE_HEIGHT);
|
||||
SetGamepadImageShowingBattery(image, SDL_TRUE);
|
||||
|
||||
gamepad_elements = CreateGamepadDisplay(screen);
|
||||
SetGamepadDisplayArea(gamepad_elements, 0, TITLE_HEIGHT, PANEL_WIDTH, GAMEPAD_HEIGHT);
|
||||
|
||||
Reference in New Issue
Block a user