Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7273


Ignore:
Timestamp:
Aug 30, 2010, 10:28:08 PM (14 years ago)
Author:
landauf
Message:

"KeyDetectorKeyPressed" is now a hidden command and "keybind" and "tkeybind" support auto-completion for the bound command

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

Legend:

Unmodified
Added
Removed
  • code/branches/consolecommands3/src/libraries/core/input/KeyBinderManager.cc

    r7236 r7273  
    4848    static const std::string __CC_tunbind_name = "tunbind";
    4949
    50     SetConsoleCommand(__CC_keybind_name,  &KeyBinderManager::keybind).defaultValues("");
    51     SetConsoleCommand(__CC_tkeybind_name, &KeyBinderManager::tkeybind).defaultValues("");
     50    SetConsoleCommand(__CC_keybind_name,  &KeyBinderManager::keybind).defaultValues("").argumentCompleter(0, autocompletion::command());
     51    SetConsoleCommand(__CC_tkeybind_name, &KeyBinderManager::tkeybind).defaultValues("").argumentCompleter(0, autocompletion::command());
    5252    SetConsoleCommand(__CC_unbind_name,   &KeyBinderManager::unbind).defaultValues("");
    5353    SetConsoleCommand(__CC_tunbind_name,  &KeyBinderManager::tunbind).defaultValues("");
  • code/branches/consolecommands3/src/libraries/core/input/KeyDetector.cc

    r7236 r7273  
    4141
    4242    static const std::string __CC_KeyDetector_callback_name = "KeyDetectorKeyPressed";
    43     DeclareConsoleCommand(__CC_KeyDetector_callback_name, &prototype::void__string);
     43    DeclareConsoleCommand(__CC_KeyDetector_callback_name, &prototype::void__string).hide();
    4444
    4545    KeyDetector::KeyDetector()
Note: See TracChangeset for help on using the changeset viewer.