void InputProcessor::DeclareBindable(const gchar *context, const gchar *action, sigc::slot<void> function, const gchar *description, BindableType type) { if (HaveBindable(context, action)) return; //TODO maybe some error here keybindings.insert(std::pair<char, Bindable>('\0', Bindable(context, action, description, '\0', function, type))); }
void InputProcessor::DeclareBindable(const char *context, const char *action, const sigc::slot<void>& function, BindableType type) { keybindings[context][action] = Bindable(function, type); }