aboutsummaryrefslogtreecommitdiff
path: root/netslide.c
diff options
context:
space:
mode:
Diffstat (limited to 'netslide.c')
-rw-r--r--netslide.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/netslide.c b/netslide.c
index 88d0944..50ee099 100644
--- a/netslide.c
+++ b/netslide.c
@@ -1050,6 +1050,14 @@ struct game_drawstate {
int cur_x, cur_y;
};
+static const char *current_key_label(const game_ui *ui,
+ const game_state *state, int button)
+{
+ if (IS_CURSOR_SELECT(button) && ui->cur_visible)
+ return "Slide";
+ return "";
+}
+
static char *interpret_move(const game_state *state, game_ui *ui,
const game_drawstate *ds,
int x, int y, int button)
@@ -1875,6 +1883,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,