Added touchpad visualization for testgamepad

This commit is contained in:
Sam Lantinga committed 2023-07-10 11:36:32 -07:00
1 parent 33d025d35a
commit 4a53dc5b8d
4 files changed
+401 -1

No files matched your search

+1
View File
@@ -35,6 +35,7 @@ typedef struct GamepadImage GamepadImage;
extern GamepadImage *CreateGamepadImage(SDL_Renderer *renderer);
extern void SetGamepadImagePosition(GamepadImage *ctx, int x, int y);
extern void SetGamepadImageShowingFront(GamepadImage *ctx, SDL_bool showing_front);
extern void SetGamepadImageShowingTouchpad(GamepadImage *ctx, SDL_bool showing_touchpad);
extern void GetGamepadImageArea(GamepadImage *ctx, int *x, int *y, int *width, int *height);
extern int GetGamepadImageButtonWidth(GamepadImage *ctx);
extern int GetGamepadImageButtonHeight(GamepadImage *ctx);