Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 4, 2014, 11:48:18 PM (11 years ago)
Author:
landauf
Message:

added option to force the arguments which are defined in the keybindings file (instead of overwriting them with the input device's state)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/core/input/Button.cc

    r9981 r9982  
    129129                float paramModifier = 1.0f;
    130130                std::string commandStr;
     131                bool forceArguments = false;
    131132
    132133                for (unsigned int iToken = 0; iToken < tokens.size(); ++iToken)
     
    142143                    else if (token == "onhold")
    143144                        mode = KeybindMode::OnHold;
     145                    else if (token == "forcearguments")
     146                        forceArguments = true;
    144147                    else if (token == "buttonthreshold")
    145148                    {
     
    186189                // check for param command
    187190                int paramIndex = eval.getConsoleCommand()->getInputConfiguredParam_();
    188                 if (paramIndex >= 0)
     191                if (paramIndex >= 0 && !forceArguments)
    189192                {
    190193                    // parameter supported command
Note: See TracChangeset for help on using the changeset viewer.