Skip to content

Commit

Permalink
Fix lambda relying on event inheritance
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAUT committed Jul 20, 2024
1 parent ee9f48c commit e5f3eb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imgui-SFML.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ void ProcessEvent(const sf::Window& window, const sf::Event& event) {
io.AddMouseWheelEvent(mouseWheelScrolled->delta, 0);
}
}
const auto handleKeyChanged = [&io](const sf::Event::KeyChanged& keyChanged, bool down) {
const auto handleKeyChanged = [&io](const auto& keyChanged, bool down) {
const ImGuiKey mod = keycodeToImGuiMod(keyChanged.code);
// The modifier booleans are not reliable when it's the modifier
// itself that's being pressed. Detect these presses directly.
Expand Down

0 comments on commit e5f3eb3

Please sign in to comment.