Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5912 for code/branches


Ignore:
Timestamp:
Oct 8, 2009, 11:11:49 PM (15 years ago)
Author:
rgrieder
Message:

New feature: "keybind" without arguments de-binds a key. We couldn't do that before

Location:
code/branches/core5/src/libraries/core/input
Files:
2 edited

Legend:

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

    r5909 r5912  
    170170
    171171                // evaluate the command
    172                 CommandEvaluation eval = CommandExecutor::evaluate(commandStr);
     172                const CommandEvaluation& eval = CommandExecutor::evaluate(commandStr);
    173173                if (!eval.isValid())
    174174                {
  • code/branches/core5/src/libraries/core/input/KeyBinderManager.cc

    r5877 r5912  
    5454
    5555        // keybind console commands
    56         CommandExecutor::addConsoleCommandShortcut(createConsoleCommand(createFunctor(&KeyBinderManager::keybind,  this), "keybind" ));
    57         CommandExecutor::addConsoleCommandShortcut(createConsoleCommand(createFunctor(&KeyBinderManager::tkeybind, this), "tkeybind"));
     56        CommandExecutor::addConsoleCommandShortcut(createConsoleCommand(createFunctor(&KeyBinderManager::keybind,  this), "keybind" ))
     57            .defaultValues("");
     58        CommandExecutor::addConsoleCommandShortcut(createConsoleCommand(createFunctor(&KeyBinderManager::tkeybind, this), "tkeybind"))
     59            .defaultValues("");
    5860
    5961        // Load default key binder
Note: See TracChangeset for help on using the changeset viewer.