From eee3d6fed878dd8e647798e1de7288c90a816804 Mon Sep 17 00:00:00 2001 From: Markus Gerber Date: Fri, 2 May 2025 16:29:37 +0200 Subject: add first version of screen-help --- lib/nes/app/application.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/nes/app/application.cc') diff --git a/lib/nes/app/application.cc b/lib/nes/app/application.cc index 622fdf7..2637d19 100644 --- a/lib/nes/app/application.cc +++ b/lib/nes/app/application.cc @@ -1,5 +1,6 @@ #include "nes/app/application.hh" #include "nes/app/input/input-device-keyboard.hh" +#include "nes/app/input/input-device-controller.hh" #include "nes/app/ui/screen.hh" #include "nes/app/graphics/renderer.hh" #include "nes/app/action.hh" @@ -53,6 +54,7 @@ namespace nes::app , screen_title_{ keyboard } , screen_browser_{ keyboard, file_browser } , screen_settings_{ input_manager_, preferences_ } + , screen_help_{ input_manager_ } , screen_error_{ keyboard } , screen_confirm_quit_{ keyboard } , screen_prompt_key_{ keyboard } @@ -142,7 +144,7 @@ namespace nes::app } case action::type::go_to_help: { - // TODO + go_to_screen(&screen_help_); break; } case action::type::close_popup: -- cgit v1.3.1