Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1268


Ignore:
Timestamp:
May 13, 2008, 10:13:17 PM (16 years ago)
Author:
rgrieder
Message:
  • removed some debug output
Location:
code/branches/merge/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/merge/src/core/InputHandler.cc

    r1219 r1268  
    5555    std::string keyNames[] = {
    5656    "UNASSIGNED",
    57                 "ESCAPE",
    58                 "1",
    59                 "2",
    60                 "3",
    61                 "4",
    62                 "5",
    63                 "6",
    64                 "7",
    65                 "8",
    66                 "9",
    67                 "0",
    68                 "MINUS",
    69                 "EQUALS",
    70                 "BACK",
    71                 "TAB",
    72                 "Q",
    73                 "W",
    74                 "E",
    75                 "R",
    76                 "T",
    77                 "Y",
    78                 "U",
    79                 "I",
    80                 "O",
    81                 "P",
    82                 "LBRACKET",
    83                 "RBRACKET",
    84                 "RETURN",
    85                 "LCONTROL",
    86                 "A",
    87                 "S",
    88                 "D",
    89                 "F",
    90                 "G",
    91                 "H",
    92                 "J",
    93                 "K",
    94                 "L",
    95                 "SEMICOLON",
    96                 "APOSTROPHE",
    97                 "GRAVE",
    98                 "LSHIFT",
    99                 "BACKSLASH",
    100                 "Z",
    101                 "X",
    102                 "C",
    103                 "V",
    104                 "B",
    105                 "N",
    106                 "M",
    107                 "COMMA",
    108                 "PERIOD",
    109                 "SLASH",
    110                 "RSHIFT",
    111                 "MULTIPLY",
    112                 "LMENU",
    113                 "SPACE",
    114                 "CAPITAL",
    115                 "F1",
    116                 "F2",
    117                 "F3",
    118                 "F4",
    119                 "F5",
    120                 "F6",
    121                 "F7",
    122                 "F8",
    123                 "F9",
    124                 "F10",
    125                 "NUMLOCK",
    126                 "SCROLL",
    127                 "NUMPAD7",
    128                 "NUMPAD8",
    129                 "NUMPAD9",
    130                 "SUBTRACT",
    131                 "NUMPAD4",
    132                 "NUMPAD5",
    133                 "NUMPAD6",
    134                 "ADD",
    135                 "NUMPAD1",
    136                 "NUMPAD2",
    137                 "NUMPAD3",
    138                 "NUMPAD0",
    139                 "DECIMAL",
     57    "ESCAPE",
     58    "1",
     59    "2",
     60    "3",
     61    "4",
     62    "5",
     63    "6",
     64    "7",
     65    "8",
     66    "9",
     67    "0",
     68    "MINUS",
     69    "EQUALS",
     70    "BACK",
     71    "TAB",
     72    "Q",
     73    "W",
     74    "E",
     75    "R",
     76    "T",
     77    "Y",
     78    "U",
     79    "I",
     80    "O",
     81    "P",
     82    "LBRACKET",
     83    "RBRACKET",
     84    "RETURN",
     85    "LCONTROL",
     86    "A",
     87    "S",
     88    "D",
     89    "F",
     90    "G",
     91    "H",
     92    "J",
     93    "K",
     94    "L",
     95    "SEMICOLON",
     96    "APOSTROPHE",
     97    "GRAVE",
     98    "LSHIFT",
     99    "BACKSLASH",
     100    "Z",
     101    "X",
     102    "C",
     103    "V",
     104    "B",
     105    "N",
     106    "M",
     107    "COMMA",
     108    "PERIOD",
     109    "SLASH",
     110    "RSHIFT",
     111    "MULTIPLY",
     112    "LMENU",
     113    "SPACE",
     114    "CAPITAL",
     115    "F1",
     116    "F2",
     117    "F3",
     118    "F4",
     119    "F5",
     120    "F6",
     121    "F7",
     122    "F8",
     123    "F9",
     124    "F10",
     125    "NUMLOCK",
     126    "SCROLL",
     127    "NUMPAD7",
     128    "NUMPAD8",
     129    "NUMPAD9",
     130    "SUBTRACT",
     131    "NUMPAD4",
     132    "NUMPAD5",
     133    "NUMPAD6",
     134    "ADD",
     135    "NUMPAD1",
     136    "NUMPAD2",
     137    "NUMPAD3",
     138    "NUMPAD0",
     139    "DECIMAL",
    140140    "","",
    141                 "OEM_102",
    142                 "F11",
    143                 "F12",
     141    "OEM_102",
     142    "F11",
     143    "F12",
    144144    "","","","","","","","","","","",
    145                 "F13",
    146                 "F14",
    147                 "F15",
     145    "F13",
     146    "F14",
     147    "F15",
    148148    "","","","","","","","","","",
    149                 "KANA",
     149    "KANA",
    150150    "","",
    151                 "ABNT_C1",
     151    "ABNT_C1",
    152152    "","","","","",
    153                 "CONVERT",
    154     "",
    155                 "NOCONVERT",
    156     "",
    157                 "YEN",
    158                 "ABNT_C2",
     153    "CONVERT",
     154    "",
     155    "NOCONVERT",
     156    "",
     157    "YEN",
     158    "ABNT_C2",
    159159    "","","","","","","","","","","","","","",
    160                 "NUMPADEQUALS",
     160    "NUMPADEQUALS",
    161161    "","",
    162                 "PREVTRACK",
    163                 "AT",
    164                 "COLON",
    165                 "UNDERLINE",
    166                 "KANJI",
    167                 "STOP",
    168                 "AX",
    169                 "UNLABELED",
    170                 "NEXTTRACK",
     162    "PREVTRACK",
     163    "AT",
     164    "COLON",
     165    "UNDERLINE",
     166    "KANJI",
     167    "STOP",
     168    "AX",
     169    "UNLABELED",
     170    "NEXTTRACK",
    171171    "","",
    172                 "NUMPADENTER",
    173                 "RCONTROL",
     172    "NUMPADENTER",
     173    "RCONTROL",
    174174    "","",
    175                 "MUTE",
    176                 "CALCULATOR",
    177                 "PLAYPAUSE",
    178     "",
    179                 "MEDIASTOP",
     175    "MUTE",
     176    "CALCULATOR",
     177    "PLAYPAUSE",
     178    "",
     179    "MEDIASTOP",
    180180    "","","","","","","","","",
    181                 "VOLUMEDOWN",
    182     "",
    183                 "VOLUMEUP",
    184     "",
    185                 "WEBHOME",
    186                 "NUMPADCOMMA",
    187     "",
    188                 "DIVIDE",
    189     "",
    190                 "SYSRQ",
    191                 "RMENU",
     181    "VOLUMEDOWN",
     182    "",
     183    "VOLUMEUP",
     184    "",
     185    "WEBHOME",
     186    "NUMPADCOMMA",
     187    "",
     188    "DIVIDE",
     189    "",
     190    "SYSRQ",
     191    "RMENU",
    192192    "","","","","","","","","","","","",
    193                 "PAUSE",
    194     "",
    195                 "HOME",
    196                 "UP",
    197                 "PGUP",
    198     "",
    199                 "LEFT",
    200     "",
    201                 "RIGHT",
    202     "",
    203                 "END",
    204                 "DOWN",
    205                 "PGDOWN",
    206                 "INSERT",
    207                 "DELETE",
     193    "PAUSE",
     194    "",
     195    "HOME",
     196    "UP",
     197    "PGUP",
     198    "",
     199    "LEFT",
     200    "",
     201    "RIGHT",
     202    "",
     203    "END",
     204    "DOWN",
     205    "PGDOWN",
     206    "INSERT",
     207    "DELETE",
    208208    "","","","","","","",
    209                 "LWIN",
    210                 "RWIN",
    211                 "APPS",
    212                 "POWER",
    213                 "SLEEP",
     209    "LWIN",
     210    "RWIN",
     211    "APPS",
     212    "POWER",
     213    "SLEEP",
    214214    "","","",
    215                 "WAKE",
    216     "",
    217                 "WEBSEARCH",
    218                 "WEBFAVORITES",
    219                 "WEBREFRESH",
    220                 "WEBSTOP",
    221                 "WEBFORWARD",
    222                 "WEBBACK",
    223                 "MYCOMPUTER",
    224                 "MAIL",
    225                 "MEDIASELECT"
     215    "WAKE",
     216    "",
     217    "WEBSEARCH",
     218    "WEBFAVORITES",
     219    "WEBREFRESH",
     220    "WEBSTOP",
     221    "WEBFORWARD",
     222    "WEBBACK",
     223    "MYCOMPUTER",
     224    "MAIL",
     225    "MEDIASELECT"
    226226    };
    227227    for (int i = 0; i < numberOfKeys_s; i++)
     
    229229
    230230    std::string mouseButtonNames[] = {
    231     "MouseLeft", "MouseRight", "MouseMiddle",
    232     "MouseButton3", "MouseButton4", "MouseButton5",
    233     "MouseButton6", "MouseButton7" };
     231      "MouseLeft", "MouseRight", "MouseMiddle",
     232      "MouseButton3", "MouseButton4", "MouseButton5",
     233      "MouseButton6", "MouseButton7" };
    234234    for (int i = 0; i < numberOfMouseButtons_s; i++)
    235235      mouseButtonNames_[i] = mouseButtonNames[i];
     
    393393      //  binding.commandStr = binding.evaluation.getCommandString();
    394394      //}
    395       COUT(3) << "Executing command: " << binding.commandStr << std::endl;
     395      COUT(ORX_DEBUG) << "Keybinding: Executing command: " << binding.commandStr << std::endl;
    396396      CommandExecutor::execute(binding.commandStr);
    397397    }
     
    407407  bool KeyBinder::keyPressed(const OIS::KeyEvent &e)
    408408  {
    409     COUT(3) << "Key: " << e.key << std::endl;
     409    //COUT(ORX_DEBUG) << "Key: " << e.key << std::endl;
    410410    // find the appropriate key binding
    411411    executeBinding(bindingsKeyPress_[int(e.key)]);
     
    459459    {
    460460      CommandExecutor::execute(cmdStr);
    461       COUT(3) << "Executing command: " << cmdStr << std::endl;
     461      //COUT(3) << "Executing command: " << cmdStr << std::endl;
    462462    }
    463463
     
    477477    {
    478478      CommandExecutor::execute(cmdStr);
    479       COUT(3) << "Executing command: " << cmdStr << std::endl;
     479      //COUT(3) << "Executing command: " << cmdStr << std::endl;
    480480    }
    481481
     
    495495    {
    496496      CommandExecutor::execute(cmdStr);
    497       COUT(3) << "Executing command: " << cmdStr << std::endl;
     497      //COUT(3) << "Executing command: " << cmdStr << std::endl;
    498498    }
    499499
     
    508508    {
    509509      CommandExecutor::execute(cmdStr);
    510       COUT(3) << "Executing command: " << cmdStr << std::endl;
     510      //COUT(3) << "Executing command: " << cmdStr << std::endl;
    511511    }
    512512
     
    521521    {
    522522      CommandExecutor::execute(cmdStr);
    523       COUT(3) << "Executing command: " << cmdStr << std::endl;
     523      //COUT(3) << "Executing command: " << cmdStr << std::endl;
    524524    }
    525525
     
    534534    {
    535535      CommandExecutor::execute(cmdStr);
    536       COUT(3) << "Executing command: " << cmdStr << std::endl;
     536      //COUT(3) << "Executing command: " << cmdStr << std::endl;
    537537    }
    538538
     
    586586  //bool GUIInputHandler::keyPressed(const OIS::KeyEvent &e)
    587587  //{
    588                 ////CEGUI::System::getSingleton().injectKeyDown( arg.key );
    589                 ////CEGUI::System::getSingleton().injectChar( arg.text );
     588    ////CEGUI::System::getSingleton().injectKeyDown( arg.key );
     589    ////CEGUI::System::getSingleton().injectChar( arg.text );
    590590  //  return true;
    591591  //}
     
    597597  //bool GUIInputHandler::keyReleased(const OIS::KeyEvent &e)
    598598  //{
    599                 ////CEGUI::System::getSingleton().injectKeyUp( arg.key );
     599    ////CEGUI::System::getSingleton().injectKeyUp( arg.key );
    600600  //  return true;
    601601  //}
     
    607607  //bool GUIInputHandler::mouseMoved(const OIS::MouseEvent &e)
    608608  //{
    609                 ////CEGUI::System::getSingleton().injectMouseMove( arg.state.X.rel, arg.state.Y.rel );
     609    ////CEGUI::System::getSingleton().injectMouseMove( arg.state.X.rel, arg.state.Y.rel );
    610610  //  return true;
    611611  //}
     
    618618  //bool GUIInputHandler::mousePressed(const OIS::MouseEvent &e, OIS::MouseButtonID id)
    619619  //{
    620                 ////CEGUI::System::getSingleton().injectMouseButtonDown(convertOISMouseButtonToCegui(id));
     620    ////CEGUI::System::getSingleton().injectMouseButtonDown(convertOISMouseButtonToCegui(id));
    621621  //  return true;
    622622  //}
     
    629629  //bool GUIInputHandler::mouseReleased(const OIS::MouseEvent &e, OIS::MouseButtonID id)
    630630  //{
    631                 ////CEGUI::System::getSingleton().injectMouseButtonUp(convertOISMouseButtonToCegui(id));
     631    ////CEGUI::System::getSingleton().injectMouseButtonUp(convertOISMouseButtonToCegui(id));
    632632  //  return true;
    633633  //}
  • code/branches/merge/src/core/InputManager.cc

    r1219 r1268  
    9292    if (state_ == IS_UNINIT)
    9393    {
     94      CCOUT(3) << "Initialising Input System..." << std::endl;
    9495      CCOUT(ORX_DEBUG) << "Initialising OIS components..." << std::endl;
    9596
  • code/branches/merge/src/orxonox/GraphicsEngine.cc

    r1263 r1268  
    9999  void GraphicsEngine::destroy()
    100100  {
    101     COUT(4) << "Destroying objects..." << std::endl;
     101    CCOUT(4) << "Destroying objects..." << std::endl;
    102102    Ogre::WindowEventUtilities::removeWindowEventListener(this->renderWindow_, this);
    103103    if (this->root_)
     
    113113      delete Ogre::LogManager::getSingletonPtr();
    114114    }
    115     COUT(4) << "Destroying objects done" << std::endl;
     115    CCOUT(4) << "Destroying objects done" << std::endl;
    116116  }
    117117
     
    139139    // create a logManager
    140140    Ogre::LogManager *logger;
    141     if (Ogre::LogManager::getSingletonPtr() == 0)
    142       logger = new Ogre::LogManager();
    143     else
    144       logger = Ogre::LogManager::getSingletonPtr();
     141    //if (Ogre::LogManager::getSingletonPtr() == 0)
     142    // note: If there's already a logManager, Ogre will complain by a failed assertation.
     143    // but that shouldn't happen, since this is the first time to create a logManager..
     144    logger = new Ogre::LogManager();
     145    //else
     146    //  logger = Ogre::LogManager::getSingletonPtr();
    145147    CCOUT(4) << "Ogre LogManager created/assigned" << std::endl;
    146148
     
    151153    else
    152154      myLog = logger->createLog(this->ogreLogfile_, true, false, false);
    153     COUT(4) << "*** GraphicsEngine: Ogre Log created" << std::endl;
     155    CCOUT(4) << "Ogre Log created" << std::endl;
    154156
    155157    myLog->setLogDetail(Ogre::LL_BOREME);
  • code/branches/merge/src/orxonox/Orxonox.cc

    r1266 r1268  
    201201  void Orxonox::abortRequest()
    202202  {
    203     COUT(3) << "*** Orxonox: Abort requested." << std::endl;
     203    COUT(3) << "Orxonox: Abort requested." << std::endl;
    204204    bAbort_ = true;
    205205  }
     
    246246      return false;
    247247
    248     COUT(3) << "*** Orxonox: Mode is " << mode << "." << std::endl;
    249248    if (mode == "client")
    250249      mode_ = CLIENT;
     
    252251      mode_ = SERVER;
    253252    else
     253    {
     254      mode = "standalone";
    254255      mode_ = STANDALONE;
     256    }
     257    COUT(3) << "Orxonox: Mode is " << mode << "." << std::endl;
    255258
    256259    //if (mode_ == DEDICATED)
     
    343346
    344347    // Load the HUD
    345     COUT(3) << "*** Orxonox: Loading HUD..." << std::endl;
     348    COUT(3) << "Orxonox: Loading HUD..." << std::endl;
    346349    Ogre::Overlay* hudOverlay = Ogre::OverlayManager::getSingleton().getByName("Orxonox/HUD1.2");
    347350    orxonoxHUD_ = new HUD();
     
    350353    hudOverlay->show();
    351354
    352     COUT(3) << "*** Orxonox: Loading Console..." << std::endl;
     355    COUT(3) << "Orxonox: Loading Console..." << std::endl;
    353356    InputBuffer* ib = dynamic_cast<InputBuffer*>(InputManager::getKeyHandler("buffer"));
    354357    /*
     
    445448    if (Ogre::Root::getSingletonPtr() == 0)
    446449    {
    447       COUT(2) << "*** Orxonox Error: Could not start rendering. No Ogre root object found" << std::endl;
     450      COUT(2) << "Orxonox Error: Could not start rendering. No Ogre root object found" << std::endl;
    448451      return false;
    449452    }
     
    466469    timer_->reset();
    467470
    468     COUT(3) << "*** Orxonox: Starting the main loop." << std::endl;
     471    COUT(3) << "Orxonox: Starting the main loop." << std::endl;
    469472          while (!bAbort_)
    470473          {
Note: See TracChangeset for help on using the changeset viewer.