mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-30 20:59:12 +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
924 B
Diff
23 lines
924 B
Diff
diff --git a/sfml-imgui/imgui-SFML.cpp b/sfml-imgui/imgui-SFML.cpp
|
|
index 36a1a91..cacc9a8 100644
|
|
--- a/sfml-imgui/imgui-SFML.cpp
|
|
+++ b/sfml-imgui/imgui-SFML.cpp
|
|
@@ -159,7 +159,7 @@ namespace
|
|
// 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);
|
|
}
|
|
@@ -734,7 +734,7 @@ namespace
|
|
ImGui::SFML::SetJoytickLStickThreshold(5.f);
|
|
}
|
|
|
|
- void updateJoystickActionState(ImGuiIO& io, ImGuiNavInput_ action)
|
|
+ void updateJoystickActionState(ImGuiIO& io, ImGuiNavInput action)
|
|
{
|
|
bool isPressed = sf::Joystick::isButtonPressed(s_joystickId, s_joystickMapping[action]);
|
|
io.NavInputs[action] = isPressed ? 1.0f : 0.0f;
|