mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-26 07:48:42 +00:00
Improved button labels, based on controller style
This commit is contained in:
parent
ee34805053
commit
cd99ae47ef
5 changed files with 8869 additions and 54 deletions
|
|
@ -14,10 +14,18 @@
|
|||
|
||||
typedef struct GamepadImage GamepadImage;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
GAMEPAD_IMAGE_FACE_BLANK,
|
||||
GAMEPAD_IMAGE_FACE_ABXY,
|
||||
GAMEPAD_IMAGE_FACE_BAYX,
|
||||
GAMEPAD_IMAGE_FACE_SONY,
|
||||
} GamepadImageFaceStyle;
|
||||
|
||||
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 SetGamepadImageReverseDiamond(GamepadImage *ctx, SDL_bool reverse_diamond);
|
||||
extern void SetGamepadImageFaceStyle(GamepadImage *ctx, GamepadImageFaceStyle face_style);
|
||||
extern void SetGamepadImageShowingBattery(GamepadImage *ctx, SDL_bool showing_battery);
|
||||
extern void SetGamepadImageShowingTouchpad(GamepadImage *ctx, SDL_bool showing_touchpad);
|
||||
extern void GetGamepadImageArea(GamepadImage *ctx, int *x, int *y, int *width, int *height);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue