MCPcopy Create free account
hub / github.com/AntiMicroX/antimicrox / updateSetSensorNames

Method updateSetSensorNames

src/inputdevice.cpp:1116–1122  ·  view source on GitHub ↗

* @brief Rename sensor in all sets to the name in the current set * @param type The sensor to rename */

Source from the content-addressed store, hash-verified

1114 * @param type The sensor to rename
1115 */
1116void InputDevice::updateSetSensorNames(JoySensorType type)
1117{
1118 JoySensor *sensor = getActiveSetJoystick()->getSensor(type);
1119
1120 if (sensor != nullptr)
1121 setSensorName(type, sensor->getSensorName());
1122}
1123
1124void InputDevice::updateSetDPadNames(int dpadIndex)
1125{

Callers

nothing calls this directly

Calls 2

getSensorNameMethod · 0.80
getSensorMethod · 0.45

Tested by

no test coverage detected