aboutsummaryrefslogtreecommitdiff
path: root/flip.c
diff options
context:
space:
mode:
Diffstat (limited to 'flip.c')
-rw-r--r--flip.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/flip.c b/flip.c
index ddc2294..e6ff0a2 100644
--- a/flip.c
+++ b/flip.c
@@ -928,6 +928,13 @@ static void game_changed_state(game_ui *ui, const game_state *oldstate,
{
}
+static const char *current_key_label(const game_ui *ui,
+ const game_state *state, int button)
+{
+ if (IS_CURSOR_SELECT(button)) return "Flip";
+ return "";
+}
+
struct game_drawstate {
int w, h;
bool started;
@@ -1346,6 +1353,7 @@ const struct game thegame = {
decode_ui,
NULL, /* game_request_keys */
game_changed_state,
+ current_key_label,
interpret_move,
execute_move,
PREFERRED_TILE_SIZE, game_compute_size, game_set_size,