From 6817dec0b405b325a2762e352ad2a5916c24542a Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 31 Jul 2016 14:14:25 +0200 Subject: Added reset_controls function to revert to the default keyboard configuration, don't override unbound keys with default binds. --- src/client/key.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/client/key.cc') diff --git a/src/client/key.cc b/src/client/key.cc index 36c9787..e2e56e5 100644 --- a/src/client/key.cc +++ b/src/client/key.cc @@ -6,7 +6,7 @@ #include "auxiliary/functions.h" #include "client/key.h" - +#include namespace client { @@ -18,6 +18,7 @@ Key::Key(const unsigned int scancode, const char *name, const char ascii) key_lastpressed = 0; key_waspressed = 0; + assert(name); key_name.assign(name); clear(); -- cgit v1.2.3