summaryrefslogtreecommitdiff
path: root/apps/plugins/snake2.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/snake2.c')
-rw-r--r--apps/plugins/snake2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/plugins/snake2.c b/apps/plugins/snake2.c
index f3dc4bed94..bb89d86cf5 100644
--- a/apps/plugins/snake2.c
+++ b/apps/plugins/snake2.c
@@ -1113,6 +1113,12 @@ void game (void)
1113 rb->sleep(HZ/speed); 1113 rb->sleep(HZ/speed);
1114 1114
1115 button = rb->button_get(false); 1115 button = rb->button_get(false);
1116
1117#ifdef HAS_BUTTON_HOLD
1118 if (rb->button_hold())
1119 button = SNAKE2_PLAYPAUSE;
1120#endif
1121
1116 switch (button) 1122 switch (button)
1117 { 1123 {
1118 case SNAKE2_UP: 1124 case SNAKE2_UP: