- [NEW] Dialeg per a configurar els joysticks

This commit is contained in:
2025-08-16 10:09:42 +02:00
parent 864c6b929d
commit 8201d51668
9 changed files with 170 additions and 38 deletions

5
ui.h
View File

@@ -27,6 +27,9 @@ namespace ui
void setrenderer(SDL_Renderer *renderer, SDL_Texture *texture);
void setoffset(uint8_t x, uint8_t y);
void incoffset(uint8_t x, uint8_t y);
uint8_t getOffsetX();
uint8_t getOffsetY();
bool mouseInside(int x, int y, int w, int h);
void panel(int x, int y, int w, int h, const char *title);
void box(int x, int y, int w, int h, uint8_t color);
@@ -41,7 +44,7 @@ namespace ui
void setClicked(const bool value);
const bool getClicked();
void setDialog(void(*dialog)(void));
void setDialog(void(*new_dialog)(void));
bool hasDialog();
void callDialog();
}