MCPcopy Create free account
hub / github.com/AntiMicroX/antimicrox / isRelativeSpring

Method isRelativeSpring

src/joydpad.cpp:589–614  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

587}
588
589bool 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
616void JoyDPad::copyAssignments(JoyDPad *destDPad)
617{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected