Esempio n. 1
0
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()));
}
Esempio n. 2
0
void SetJoystick::propogateSetDPadButtonRelease(int button)
{
    JoyDPadButton *dpadButton = static_cast<JoyDPadButton*>(sender());
    JoyDPad *dpad = dpadButton->getDPad();
    if (!dpadButton->getIgnoreEventState())
    {
        emit setDPadButtonRelease(index, dpad->getIndex(), button);
    }
}
Esempio n. 3
0
void InputDevice::dpadButtonReleaseEvent(int buttonindex)
{
    JoyDPadButton *dpadbutton = static_cast<JoyDPadButton*>(sender());

    emit rawDPadButtonRelease(dpadbutton->getDPad()->getIndex(), buttonindex);
}