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

Method changeSetSensorButtonAssociation

src/inputdevice.cpp:649–657  ·  view source on GitHub ↗

* @brief Creates reverse set change button mapping for toggle and while-hold set * change mappings. */

Source from the content-addressed store, hash-verified

647 * change mappings.
648 */
649void 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
659void InputDevice::changeSetDPadButtonAssociation(int button_index, int dpad_index, int originset, int newset, int mode)
660{

Callers

nothing calls this directly

Calls 4

setChangeSetSelectionMethod · 0.80
getDirectionButtonMethod · 0.45
getSensorMethod · 0.45
setChangeSetConditionMethod · 0.45

Tested by

no test coverage detected