From 0adfdfb135cc46331a886d827f7971ecf2142c10 Mon Sep 17 00:00:00 2001 From: scawful Date: Sat, 21 Dec 2024 18:56:47 -0500 Subject: [PATCH] Add getter for active state in Controller class --- src/app/core/controller.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/core/controller.h b/src/app/core/controller.h index 726189d2..4f3a5d03 100644 --- a/src/app/core/controller.h +++ b/src/app/core/controller.h @@ -54,6 +54,7 @@ class Controller : public ExperimentFlags { auto window() -> SDL_Window * { return window_.get(); } void init_test_editor(editor::Editor *editor) { test_editor_ = editor; } void set_active(bool active) { active_ = active; } + auto active() { return active_; } private: friend int ::main(int argc, char **argv);