void SetJoystick::propogateSetStickButtonNameChange() { JoyControlStickButton *button = static_cast<JoyControlStickButton*>(sender()); disconnect(button, SIGNAL(buttonNameChanged()), this, SLOT(propogateSetStickButtonNameChange())); emit setStickButtonNameChange(button->getStick()->getIndex(), button->getJoyNumber()); connect(button, SIGNAL(buttonNameChanged()), this, SLOT(propogateSetStickButtonNameChange())); }
void SetJoystick::propogateSetStickButtonRelease(int button) { JoyControlStickButton *stickButton = static_cast<JoyControlStickButton*>(sender()); JoyControlStick *stick = stickButton->getStick(); if (!stickButton->getIgnoreEventState()) { emit setStickButtonRelease(index, stick->getIndex(), button); } }