Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2016-07-31 14:14:25 +0200
committerStijn Buys <ingar@osirion.org>2016-07-31 14:14:25 +0200
commit6817dec0b405b325a2762e352ad2a5916c24542a (patch)
treea61a1b756c4ffa18c2a8c9ce874a9ae4cdf591e0 /src/client/keyboard.h
parentb9205ba21a5663d1aa57b1b1213bea5ecbf1c073 (diff)
Added reset_controls function to revert to the default keyboard configuration,
don't override unbound keys with default binds.
Diffstat (limited to 'src/client/keyboard.h')
-rw-r--r--src/client/keyboard.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/keyboard.h b/src/client/keyboard.h
index a665c55..6e0a600 100644
--- a/src/client/keyboard.h
+++ b/src/client/keyboard.h
@@ -65,8 +65,11 @@ public:
/// save keyboard binds
void save_binds() const;
- /// load controls
+ /// load controls from key binds
void load_controls();
+
+ /// load default controls
+ void load_defaults();
/// a key has been pressed
Key *press(const unsigned int scancode);