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

Method updateSetStickButtonNames

src/inputdevice.cpp:1039–1050  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1037}
1038
1039void InputDevice::updateSetStickButtonNames(int stickIndex, int buttonIndex)
1040{
1041 JoyControlStick *stick = getActiveSetJoystick()->getJoyStick(stickIndex);
1042
1043 if (stick != nullptr)
1044 {
1045 JoyControlStickButton *button = stick->getDirectionButton(JoyControlStick::JoyStickDirections(buttonIndex));
1046
1047 if (button != nullptr)
1048 setStickButtonName(stickIndex, buttonIndex, button->getButtonName());
1049 }
1050}
1051
1052/**
1053 * @brief Rename mapped sensor button in all sets to the name in the active set

Callers

nothing calls this directly

Calls 4

JoyStickDirectionsEnum · 0.85
getJoyStickMethod · 0.80
getButtonNameMethod · 0.80
getDirectionButtonMethod · 0.45

Tested by

no test coverage detected