#ifndef BUTTON_H #define BUTTON_H #include #include #ifdef __cplusplus extern "C" { #endif enum { BUTTON_LEFT, BUTTON_MID, BUTTON_RIGHT, MAX_BUTTON_SPRITES }; struct button { const char *text; short x, y, w; }; bool button_is_pressed(const struct button *b); int button_render(const struct button *b); extern struct sprite button_sprites[MAX_BUTTON_SPRITES]; #ifdef __cplusplus } #endif #endif /* BUTTON_H */