forked from Kenix3/libultraship
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ImGui patch for Gamepad Update, Stormlib patch tweak (Kenix3#677)
* Add and implement patch to remove a return in the SDL implementation preventing gamepad update when menubar is closed. * Incorporate latest Stormlib patch tweak, and apply it to the gamepad patch as well. * Fix whitespacing.
- Loading branch information
1 parent
aee78ab
commit 57a5994
Showing
2 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
backends/imgui_impl_sdl2.cpp | 3 --- | ||
1 file changed, 3 deletions(-) | ||
|
||
diff --git a/backends/imgui_impl_sdl2.cpp b/backends/imgui_impl_sdl2.cpp | ||
index 569b01d1..c2f84dca 100644 | ||
--- a/backends/imgui_impl_sdl2.cpp | ||
+++ b/backends/imgui_impl_sdl2.cpp | ||
@@ -770,9 +770,6 @@ static void ImGui_ImplSDL2_UpdateGamepads() | ||
bd->WantUpdateGamepadsList = false; | ||
} | ||
|
||
- // FIXME: Technically feeding gamepad shouldn't depend on this now that they are regular inputs. | ||
- if ((io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) == 0) | ||
- return; | ||
io.BackendFlags &= ~ImGuiBackendFlags_HasGamepad; | ||
if (bd->Gamepads.Size == 0) | ||
return; |