| 1037 | } |
| 1038 | |
| 1039 | void 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 |
nothing calls this directly
no test coverage detected