void SetJoystick::propogateSetAxisNameChange() { JoyAxis *axis = static_cast<JoyAxis*>(sender()); disconnect(axis, SIGNAL(axisNameChanged()), this, SLOT(propogateSetAxisNameChange())); emit setAxisNameChange(axis->getIndex()); connect(axis, SIGNAL(axisNameChanged()), this, SLOT(propogateSetAxisNameChange())); }
void SetJoystick::propogateSetAxisButtonRelease(int button) { JoyAxisButton *axisButton = static_cast<JoyAxisButton*>(sender()); JoyAxis *axis = axisButton->getAxis(); if (!axisButton->getIgnoreEventState()) { emit setAxisButtonRelease(index, axis->getIndex(), button); } }
void SetJoystick::propogateSetAxisActivated(int value) { JoyAxis *axis = static_cast<JoyAxis*>(sender()); emit setAxisActivated(this->index, axis->getIndex(), value); }