carb::input::setDefaultActionMapping
Defined in carb/input/InputUtils.h
-
inline bool carb::input::setDefaultActionMapping(IInput *input, ActionMappingSetHandle actionMappingSet, const char *actionName, const ActionMappingDesc &desc)
Adds an action mapping if one does not already exist.
See also
IInput::getActionMappingCount() IInput::addActionMapping()
- Parameters
input – The IInput interface.
actionMappingSet – The ActionMappingSet to add the default action mapping to.
actionName – The name of the action.
desc – The ActionMappingDesc to set as default.
- Returns
true
if no action mapping existed and a new one was added;false
otherwise.