Add ImGui screen for Aurora Null backend

Resolves #628
This commit is contained in:
Luke Street
2026-05-06 16:39:28 -06:00
parent c21bce0093
commit 7f0955f022
9 changed files with 160 additions and 69 deletions
+8
View File
@@ -117,6 +117,10 @@ const char* connection_state_icon(SDL_JoystickConnectionState state) noexcept {
}
void handle_event(const SDL_Event& event) noexcept {
if (!aurora::rmlui::is_initialized()) {
return;
}
if (event.type == SDL_EVENT_GAMEPAD_ADDED) {
auto* gamepad = SDL_GetGamepadFromID(event.gdevice.which);
if (SDL_GamepadConnected(gamepad)) {
@@ -205,6 +209,10 @@ Document* top_document() noexcept {
}
void update() noexcept {
if (!aurora::rmlui::is_initialized()) {
return;
}
input::update_input();
for (const auto& doc : sDocumentStack) {
doc->update();