void SetJoystick::propogateSetVDPadButtonNameChange() { JoyDPadButton *button = static_cast<JoyDPadButton*>(sender()); disconnect(button, SIGNAL(buttonNameChanged()), this, SLOT(propogateSetVDPadButtonNameChange())); emit setVDPadButtonNameChange(button->getDPad()->getIndex(), button->getJoyNumber()); connect(button, SIGNAL(buttonNameChanged()), this, SLOT(propogateSetVDPadButtonNameChange())); }
void SetJoystick::propogateSetDPadButtonRelease(int button) { JoyDPadButton *dpadButton = static_cast<JoyDPadButton*>(sender()); JoyDPad *dpad = dpadButton->getDPad(); if (!dpadButton->getIgnoreEventState()) { emit setDPadButtonRelease(index, dpad->getIndex(), button); } }
void InputDevice::dpadButtonReleaseEvent(int buttonindex) { JoyDPadButton *dpadbutton = static_cast<JoyDPadButton*>(sender()); emit rawDPadButtonRelease(dpadbutton->getDPad()->getIndex(), buttonindex); }