Ejemplo n.º 1
0
/**
 * @brief Generate a string that represents slots that will be activated or
 *     slots that are currently active if a button is pressed
 * @return String of currently applicable slots for a button
 */
QString JoyControlStickButton::getActiveZoneSummary()
{
    QList<JoyButtonSlot*> tempList;
    JoyControlStickModifierButton *tempButton = stick->getModifierButton();
    if (tempButton && tempButton->getButtonState() && getButtonState())
    {
        QList<JoyButtonSlot*> activeModifierSlots = tempButton->getActiveZoneList();
        tempList.append(activeModifierSlots);
    }

    tempList.append(getActiveZoneList());
    QString temp = buildActiveZoneSummary(tempList);
    return temp;
}