summaryrefslogtreecommitdiff
path: root/apps/plugins/puzzles/src/nestedvm.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/puzzles/src/nestedvm.c')
-rw-r--r--apps/plugins/puzzles/src/nestedvm.c28
1 files changed, 26 insertions, 2 deletions
diff --git a/apps/plugins/puzzles/src/nestedvm.c b/apps/plugins/puzzles/src/nestedvm.c
index 79b797116f..f7a2ae8ec5 100644
--- a/apps/plugins/puzzles/src/nestedvm.c
+++ b/apps/plugins/puzzles/src/nestedvm.c
@@ -305,10 +305,34 @@ static int get_config(frontend *fe, int which)
305 return fe->cfgret; 305 return fe->cfgret;
306} 306}
307 307
308int jcallback_menu_key_event(int key) 308int jcallback_newgame_event(void)
309{ 309{
310 frontend *fe = (frontend *)_fe; 310 frontend *fe = (frontend *)_fe;
311 if (!midend_process_key(fe->me, 0, 0, key)) 311 if (!midend_process_key(fe->me, 0, 0, UI_NEWGAME))
312 return 42;
313 return 0;
314}
315
316int jcallback_undo_event(void)
317{
318 frontend *fe = (frontend *)_fe;
319 if (!midend_process_key(fe->me, 0, 0, UI_UNDO))
320 return 42;
321 return 0;
322}
323
324int jcallback_redo_event(void)
325{
326 frontend *fe = (frontend *)_fe;
327 if (!midend_process_key(fe->me, 0, 0, UI_REDO))
328 return 42;
329 return 0;
330}
331
332int jcallback_quit_event(void)
333{
334 frontend *fe = (frontend *)_fe;
335 if (!midend_process_key(fe->me, 0, 0, UI_QUIT))
312 return 42; 336 return 42;
313 return 0; 337 return 0;
314} 338}