* Some interface for key bindings
This commit is contained in:
jean.chalard
2010-02-15 14:32:56 +00:00
parent 16abaa249c
commit 16ca1a929f
4 changed files with 33 additions and 1 deletions

View File

@@ -903,11 +903,12 @@ bool GameOptionKeyBindings::read(string input){
}
if (assoc.empty()) return false;
JGE* j = JGE::GetInstance();
j->ClearBindings();
for (vector< pair<LocalKeySym, JButton> >::const_iterator it = assoc.begin(); it != assoc.end(); ++it)
j->BindKey(it->first, it->second);
return true;
}