carb::input::parseDeviceNameString

Defined in carb/input/InputUtils.h

inline void carb::input::parseDeviceNameString(const char *deviceName, DeviceType *deviceType, std::string *deviceId)

Separates a device name into a device type and device ID.

Parameters
  • deviceName – Name as from getDeviceNameString().

  • deviceType – Parsed DeviceType from deviceName. If not needed, this can be nullptr.

  • deviceId – Parsed device ID from deviceName. If not needed, this can be nullptr.