carb::input::getActionMappingDescFromString

Defined in carb/input/InputUtils.h

inline ActionMappingDesc carb::input::getActionMappingDescFromString(const char *hotkeyString, std::string *deviceId)

Translates a hot-key string to a ActionMappingDesc.

Parameters
  • hotkeyString – The hot-key string.

  • deviceId – (optional) Receives the device identifier.

Returns

An ActionMappingDesc determined from the hotkeyString.