Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 28, 2010, 1:51:04 AM (14 years ago)
Author:
landauf
Message:

replaced the temporary names of all ConsoleCommand related classes and functions by their real names

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

Legend:

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

    r7219 r7236  
    6666    static const std::string __CC_reload_name = "reload";
    6767
    68     _SetConsoleCommand(__CC_InputManager_name, __CC_calibrate_name, &InputManager::calibrate).addShortcut();
    69     _SetConsoleCommand(__CC_InputManager_name, __CC_reload_name,    &InputManager::reload   );
     68    SetConsoleCommand(__CC_InputManager_name, __CC_calibrate_name, &InputManager::calibrate).addShortcut();
     69    SetConsoleCommand(__CC_InputManager_name, __CC_reload_name,    &InputManager::reload   );
    7070
    7171    // Abuse of this source file for the InputHandler
     
    125125        this->updateActiveStates();
    126126
    127         _ModifyConsoleCommand(__CC_InputManager_name, __CC_calibrate_name).setObject(this);
    128         _ModifyConsoleCommand(__CC_InputManager_name, __CC_reload_name).setObject(this);
     127        ModifyConsoleCommand(__CC_InputManager_name, __CC_calibrate_name).setObject(this);
     128        ModifyConsoleCommand(__CC_InputManager_name, __CC_reload_name).setObject(this);
    129129
    130130        CCOUT(4) << "Construction complete." << std::endl;
     
    294294
    295295        // Reset console commands
    296         _ModifyConsoleCommand(__CC_InputManager_name, __CC_calibrate_name).setObject(0);
    297         _ModifyConsoleCommand(__CC_InputManager_name, __CC_reload_name).setObject(0);
     296        ModifyConsoleCommand(__CC_InputManager_name, __CC_calibrate_name).setObject(0);
     297        ModifyConsoleCommand(__CC_InputManager_name, __CC_reload_name).setObject(0);
    298298
    299299        CCOUT(3) << "Destruction complete." << std::endl;
  • code/branches/consolecommands3/src/libraries/core/input/KeyBinderManager.cc

    r7219 r7236  
    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("");
    52     _SetConsoleCommand(__CC_unbind_name,   &KeyBinderManager::unbind).defaultValues("");
    53     _SetConsoleCommand(__CC_tunbind_name,  &KeyBinderManager::tunbind).defaultValues("");
     50    SetConsoleCommand(__CC_keybind_name,  &KeyBinderManager::keybind).defaultValues("");
     51    SetConsoleCommand(__CC_tkeybind_name, &KeyBinderManager::tkeybind).defaultValues("");
     52    SetConsoleCommand(__CC_unbind_name,   &KeyBinderManager::unbind).defaultValues("");
     53    SetConsoleCommand(__CC_tunbind_name,  &KeyBinderManager::tunbind).defaultValues("");
    5454
    5555    KeyBinderManager::KeyBinderManager()
     
    6262
    6363        // keybind console commands
    64         _ModifyConsoleCommand(__CC_keybind_name ).setObject(this);
    65         _ModifyConsoleCommand(__CC_tkeybind_name).setObject(this);
    66         _ModifyConsoleCommand(__CC_unbind_name  ).setObject(this);
    67         _ModifyConsoleCommand(__CC_tunbind_name ).setObject(this);
     64        ModifyConsoleCommand(__CC_keybind_name ).setObject(this);
     65        ModifyConsoleCommand(__CC_tkeybind_name).setObject(this);
     66        ModifyConsoleCommand(__CC_unbind_name  ).setObject(this);
     67        ModifyConsoleCommand(__CC_tunbind_name ).setObject(this);
    6868
    6969        // Load default key binder
     
    7878
    7979        // Reset console commands
    80         _ModifyConsoleCommand(__CC_keybind_name ).setObject(0);
    81         _ModifyConsoleCommand(__CC_tkeybind_name).setObject(0);
    82         _ModifyConsoleCommand(__CC_unbind_name  ).setObject(0);
    83         _ModifyConsoleCommand(__CC_tunbind_name ).setObject(0);
     80        ModifyConsoleCommand(__CC_keybind_name ).setObject(0);
     81        ModifyConsoleCommand(__CC_tkeybind_name).setObject(0);
     82        ModifyConsoleCommand(__CC_unbind_name  ).setObject(0);
     83        ModifyConsoleCommand(__CC_tunbind_name ).setObject(0);
    8484    }
    8585
  • code/branches/consolecommands3/src/libraries/core/input/KeyDetector.cc

    r7219 r7236  
    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);
    4444
    4545    KeyDetector::KeyDetector()
     
    4848        RegisterObject(KeyDetector);
    4949
    50         _ModifyConsoleCommand(__CC_KeyDetector_callback_name).setFunction(&KeyDetector::callback, this);
     50        ModifyConsoleCommand(__CC_KeyDetector_callback_name).setFunction(&KeyDetector::callback, this);
    5151
    5252        this->assignCommands();
     
    6262        inputState_->setHandler(NULL);
    6363        InputManager::getInstance().destroyState("detector");
    64         _ModifyConsoleCommand(__CC_KeyDetector_callback_name).resetFunction();
     64        ModifyConsoleCommand(__CC_KeyDetector_callback_name).resetFunction();
    6565    }
    6666
  • code/branches/consolecommands3/src/libraries/core/input/Mouse.cc

    r7220 r7236  
    4646    static const std::string __CC_ungrab_name = "ungrab";
    4747
    48     _SetConsoleCommand(__CC_Mouse_name, __CC_grab_name,   &Mouse::grab);
    49     _SetConsoleCommand(__CC_Mouse_name, __CC_ungrab_name, &Mouse::ungrab);
     48    SetConsoleCommand(__CC_Mouse_name, __CC_grab_name,   &Mouse::grab);
     49    SetConsoleCommand(__CC_Mouse_name, __CC_ungrab_name, &Mouse::ungrab);
    5050#endif
    5151
     
    5757
    5858#ifdef ORXONOX_PLATFORM_LINUX
    59         _ModifyConsoleCommand(__CC_Mouse_name, __CC_grab_name).setObject(this);
    60         _ModifyConsoleCommand(__CC_Mouse_name, __CC_ungrab_name).setObject(this);
     59        ModifyConsoleCommand(__CC_Mouse_name, __CC_grab_name).setObject(this);
     60        ModifyConsoleCommand(__CC_Mouse_name, __CC_ungrab_name).setObject(this);
    6161#endif
    6262    }
     
    6565    {
    6666#ifdef ORXONOX_PLATFORM_LINUX
    67         _ModifyConsoleCommand(__CC_Mouse_name, __CC_grab_name).setObject(0);
    68         _ModifyConsoleCommand(__CC_Mouse_name, __CC_ungrab_name).setObject(0);
     67        ModifyConsoleCommand(__CC_Mouse_name, __CC_grab_name).setObject(0);
     68        ModifyConsoleCommand(__CC_Mouse_name, __CC_ungrab_name).setObject(0);
    6969#endif
    7070    }
Note: See TracChangeset for help on using the changeset viewer.