From 9b327f894d1883c1d6c1d824721cca5cf4478fdc Mon Sep 17 00:00:00 2001 From: Alex Sanchez-Stern Date: Mon, 4 Nov 2024 15:10:45 -0800 Subject: [PATCH] More format stuff --- src/core/keybind/keybind.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/keybind/keybind.cpp b/src/core/keybind/keybind.cpp index b8f1653..8323c9c 100644 --- a/src/core/keybind/keybind.cpp +++ b/src/core/keybind/keybind.cpp @@ -72,7 +72,7 @@ namespace Toolbox { bool KeyBind::isInputMatching() const { return std::all_of(m_key_combo.begin(), m_key_combo.end(), [](Input::KeyCode keybind) { return Input::GetKey(keybind); }) && - (Input::GetPressedKeyModifiers() & m_key_mods) == m_key_mods; + (Input::GetPressedKeyModifiers() & m_key_mods) == m_key_mods; } std::string KeyBind::toString() const { @@ -102,7 +102,8 @@ namespace Toolbox { bool KeyBind::scanNextInputKey() { // Check if any of the keys are still being held bool any_keys_held = std::any_of(m_key_combo.begin(), m_key_combo.end(), - [](Input::KeyCode key) { return Input::GetKey(key); }) || !!(Input::GetPressedKeyModifiers() & m_key_mods); + [](Input::KeyCode key) { return Input::GetKey(key); }) || + !!(Input::GetPressedKeyModifiers() & m_key_mods); if (m_key_combo.size() > 0 && !any_keys_held) { return true; }