* @brief Creates reverse set change button mapping for toggle and while-hold set * change mappings. */
| 647 | * change mappings. |
| 648 | */ |
| 649 | void InputDevice::changeSetSensorButtonAssociation(JoySensorDirection direction, JoySensorType type, int originset, |
| 650 | int newset, int mode) |
| 651 | { |
| 652 | JoySensorButton *button = getJoystick_sets().value(newset)->getSensor(type)->getDirectionButton(direction); |
| 653 | |
| 654 | JoyButton::SetChangeCondition tempmode = static_cast<JoyButton::SetChangeCondition>(mode); |
| 655 | button->setChangeSetSelection(originset); |
| 656 | button->setChangeSetCondition(tempmode, true); |
| 657 | } |
| 658 | |
| 659 | void InputDevice::changeSetDPadButtonAssociation(int button_index, int dpad_index, int originset, int newset, int mode) |
| 660 | { |
nothing calls this directly
no test coverage detected