J :
* Some interface for key bindings
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user