summaryrefslogtreecommitdiff
path: root/ui/modeHelper.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui/modeHelper.hpp')
-rw-r--r--ui/modeHelper.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/modeHelper.hpp b/ui/modeHelper.hpp
index 508beed..77707f2 100644
--- a/ui/modeHelper.hpp
+++ b/ui/modeHelper.hpp
@@ -6,6 +6,8 @@ union SDL_Event;
enum ModeSecondClick { Unset, Reset, NoAction };
template<typename Target, ModeSecondClick msc = ModeSecondClick::Unset> class Mode {
public:
+ explicit Mode(Target & t) : target {t} { }
+
Target & target;
template<typename Mode, typename... Params>