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