Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 19, 2008, 2:33:09 AM (16 years ago)
Author:
landauf
Message:

The InGameConsole is now using the new Shell. There's a clear separation between the two classes: InGameConsole implements all graphical parts of the console (and has a tick), while Shell handles the internal actions (like listening on input and output changes). That's why InGameConsole has no longer it's own InputBuffer and doesn't care about command-executing or anything else.

There are currently three new features:

  • Every output through COUT(level) is now visible in the InGameConsole, provided the configured output-level for the shell matches. default: 1 (only forced output and errors)
  • The cursor in the input-line is movable with the left and right arrow keys (home and end works too)
  • You can scroll through all output-lines by pressing page up and page down

There's another feature to come, providing a command history, accessible with up and down arrow keys, but I couldn't finish it yet, because there's still a bug, causing Orxonox to scroll through the entire memory - that's maybe a bit too much history ;)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/console/src/core/InputManager.cc

    r1089 r1322  
    105105        // create a keyboard. If none are available the exception is caught.
    106106        keyboard_ = static_cast<OIS::Keyboard*>(inputSystem_->createInputObject(OIS::OISKeyboard, true));
    107         COUT(ORX_DEBUG) << "*** InputManager: Created OIS mouse" << std::endl;
     107        COUT(ORX_DEBUG) << "*** InputManager: Created OIS keyboard" << std::endl;
     108
     109        if (this->handlerBuffer_)
     110            this->handlerBuffer_->setKeyboard(this->keyboard_);
    108111
    109112        // create a mouse. If none are available the exception is caught.
    110113        mouse_ = static_cast<OIS::Mouse*>(inputSystem_->createInputObject(OIS::OISMouse, true));
    111         COUT(ORX_DEBUG) << "*** InputManager: Created OIS keyboard" << std::endl;
     114        COUT(ORX_DEBUG) << "*** InputManager: Created OIS mouse" << std::endl;
    112115
    113116        // Set mouse region
Note: See TracChangeset for help on using the changeset viewer.