build 180804. configurable command bindings for scroll wheel, minor bug fixes

This commit is contained in:
tmj-fstate
2018-08-04 12:34:51 +02:00
parent ec1a625c12
commit cf7b9652e0
14 changed files with 180 additions and 49 deletions

View File

@@ -110,8 +110,6 @@ keyboard_input::recall_bindings() {
}
}
bind();
return true;
}
@@ -187,15 +185,9 @@ keyboard_input::key( int const Key ) const {
void
keyboard_input::bind() {
m_bindings.clear();
for( auto const &bindingsetup : m_bindingsetups ) {
if( bindingsetup.binding != -1 ) {
m_bindings.emplace(
bindingsetup.binding,
bindingsetup.command );
}
m_bindings[ bindingsetup.binding ] = bindingsetup.command;
}
// cache movement key bindings
m_bindingscache.forward = binding( user_command::moveforward );