diff options
| author | realtradam <[email protected]> | 2023-06-16 02:30:27 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2023-06-16 02:30:27 -0400 |
| commit | 7b5c8b6160cc5ea094becfc124ecfbc3cd0b1d5d (patch) | |
| tree | 590e73f709c682f05421b297572fab6a55aef42d /src/input | |
| parent | 4cb44499b27cd8fe4955a16a9af46cf97ecf06e3 (diff) | |
| download | RodeoKit-7b5c8b6160cc5ea094becfc124ecfbc3cd0b1d5d.tar.gz RodeoKit-7b5c8b6160cc5ea094becfc124ecfbc3cd0b1d5d.zip | |
added function to check if a scene is active
Diffstat (limited to 'src/input')
| -rw-r--r-- | src/input/rodeo_input.c | 14 |
1 files changed, 14 insertions, 0 deletions
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 |
