From 7b5c8b6160cc5ea094becfc124ecfbc3cd0b1d5d Mon Sep 17 00:00:00 2001 From: realtradam Date: Fri, 16 Jun 2023 02:30:27 -0400 Subject: added function to check if a scene is active --- src/input/rodeo_input.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/input/rodeo_input.c b/src/input/rodeo_input.c index 0ea511e..f9c0b06 100644 --- a/src/input/rodeo_input.c +++ b/src/input/rodeo_input.c @@ -687,6 +687,20 @@ rodeo_input_scene_deactivate(rodeo_input_scene_t scene) cset_input_scene_erase(&istate.active_scenes, scene.data); } +bool +rodeo_input_scene_isActive(rodeo_input_scene_t scene) +{ + if(cset_input_scene_get(&istate.active_scenes, scene.data) == NULL) + { + return false; + } + else + { + return true; + } + +} + #define i_key int32_t #define i_val SDL_GameController* #define i_tag SDL_GameController -- cgit v1.2.3