| 587 | } |
| 588 | |
| 589 | bool JoyDPad::isRelativeSpring() |
| 590 | { |
| 591 | bool relative = false; |
| 592 | |
| 593 | QHash<int, JoyDPadButton *> temphash = getApplicableButtons(); |
| 594 | auto iter = temphash.cbegin(); |
| 595 | |
| 596 | if (iter == temphash.cend()) |
| 597 | return relative; |
| 598 | |
| 599 | JoyDPadButton *button = iter.value(); |
| 600 | relative = button->isRelativeSpring(); |
| 601 | |
| 602 | while (++iter != temphash.cend()) |
| 603 | { |
| 604 | button = iter.value(); |
| 605 | bool temp = button->isRelativeSpring(); |
| 606 | if (temp != relative) |
| 607 | { |
| 608 | relative = false; |
| 609 | break; |
| 610 | } |
| 611 | } |
| 612 | |
| 613 | return relative; |
| 614 | } |
| 615 | |
| 616 | void JoyDPad::copyAssignments(JoyDPad *destDPad) |
| 617 | { |
nothing calls this directly
no outgoing calls
no test coverage detected