mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-25 10:57:56 +08:00
2c26c9aff1
* [imgui] Update to 1.89 * [imgui] Update version files * [imgui] Update to 1.89.1 * [imgui] Update version files * [ogre] Fix build failure on imgui 1.89 * [ogre] Update version files * [imgui-sfml] Fix build failure on imgui 1.89 * [imgui-sfml] Update version files * [milerius-sfml-imgui] Fix build failure on imgui 1.89 * [milerius-sfml-imgui] Update version files * [imgui] Modernize port * [imgui] Update version files * bump port version * version * version... again Co-authored-by: Javier Matos Denizac <javier.matosd@gmail.com>
23 lines
968 B
Diff
23 lines
968 B
Diff
diff --git a/imgui-SFML.cpp b/imgui-SFML.cpp
|
|
index 6ca64ae..94af0c8 100644
|
|
--- a/imgui-SFML.cpp
|
|
+++ b/imgui-SFML.cpp
|
|
@@ -128,7 +128,7 @@ void initDefaultJoystickMapping();
|
|
// Returns first id of connected joystick
|
|
unsigned int getConnectedJoystickId();
|
|
|
|
-void updateJoystickActionState(ImGuiIO& io, ImGuiNavInput_ action);
|
|
+void updateJoystickActionState(ImGuiIO& io, ImGuiNavInput action);
|
|
void updateJoystickDPadState(ImGuiIO& io);
|
|
void updateJoystickLStickState(ImGuiIO& io);
|
|
|
|
@@ -1030,7 +1030,7 @@ void initDefaultJoystickMapping() {
|
|
ImGui::SFML::SetJoystickLStickThreshold(5.f);
|
|
}
|
|
|
|
-void updateJoystickActionState(ImGuiIO& io, ImGuiNavInput_ action) {
|
|
+void updateJoystickActionState(ImGuiIO& io, ImGuiNavInput action) {
|
|
bool isPressed = sf::Joystick::isButtonPressed(s_currWindowCtx->joystickId,
|
|
s_currWindowCtx->joystickMapping[action]);
|
|
io.NavInputs[action] = isPressed ? 1.0f : 0.0f;
|