summaryrefslogtreecommitdiffhomepage
path: root/editor/events.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2025-02-05 05:17:47 +0100
committerStanislaw Halik <sthalik@misaki.pl>2025-02-05 06:22:43 +0100
commitab13ab5f71a5b09de3b9526feca2ed7c564cee7e (patch)
tree1699d8de2dd8217b7133b19c1a9878494a2854ca /editor/events.cpp
parent867a22c2a989b3f3a2bc47044226f5f9df6a59fd (diff)
switch to Corrade pair impl from stl
Diffstat (limited to 'editor/events.cpp')
-rw-r--r--editor/events.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/editor/events.cpp b/editor/events.cpp
index b25cdb7e..6aaf1e70 100644
--- a/editor/events.cpp
+++ b/editor/events.cpp
@@ -7,7 +7,8 @@
#include "keys.hpp"
#include "editor.hpp"
#include "compat/enum-bitset.hpp"
-#include <tuple>
+#include <Corrade/Containers/Pair.h>
+#include <Corrade/Containers/StructuredBindings.h>
#include <Magnum/Platform/Sdl2Application.h>
#include <Magnum/ImGuiIntegration/Context.hpp>
@@ -141,7 +142,7 @@ void app::on_mouse_scroll(const mouse_scroll_event& event, const sdl2::EvScroll&
while (false);
}
-auto app::resolve_keybinding(int k_, int mods_) -> std::tuple<key, int>
+auto app::resolve_keybinding(int k_, int mods_) -> Pair<key, int>
{
[[maybe_unused]] constexpr int CTRL = kmod_ctrl;
[[maybe_unused]] constexpr int SHIFT = kmod_shift;