Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
malytomas committed Jan 31, 2025
1 parent e6f6317 commit 412fe1f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sources/libengine/keybinds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -644,8 +644,6 @@ namespace cage
[](const auto &a) -> String
{
using T = std::decay_t<decltype(a)>;
//if constexpr (std::is_same_v<T, std::monostate>)
// return "";
if constexpr (std::is_same_v<T, KeyboardMatcher>)
return Stringizer() + "key " + a.key + " " + (uint32)a.requiredFlags + " " + (uint32)~a.forbiddenFlags;
if constexpr (std::is_same_v<T, ModifiersMatcher>)
Expand All @@ -654,6 +652,7 @@ namespace cage
return Stringizer() + "mouse " + (uint32)a.button + " " + (uint32)a.requiredFlags + " " + (uint32)~a.forbiddenFlags;
if constexpr (std::is_same_v<T, WheelMatcher>)
return Stringizer() + "wheel " + a.direction + " " + (uint32)a.requiredFlags + " " + (uint32)~a.forbiddenFlags;
return "";
},
mt);
}
Expand Down

0 comments on commit 412fe1f

Please sign in to comment.