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()

  • 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.


true if no action mapping existed and a new one was added; false otherwise.