getDeviceNameString#

Fully qualified name: carb::input::getDeviceNameString

Defined in carb/input/InputUtils.h

inline std::string carb::input::getDeviceNameString(
DeviceType deviceType,
const char *deviceId,
)#

Returns a device name.

Parameters:
  • deviceTypeDeviceType

  • deviceId – The identifier of the device.

Returns:

A device name composed of getDeviceTypeString() for deviceType, with [<deviceId>] appended. If deviceType is not valid, an empty string is returned.