Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5968


Ignore:
Timestamp:
Oct 20, 2009, 6:46:50 PM (15 years ago)
Author:
rgrieder
Message:

Basic construct of an IOConsole for Unix, using Oli's console from GSDedicated.
MAY NOT COMPILE, PROBABLY DOESN'T RUN!
And surely does neither on Windows.

Location:
code/branches/console/src/libraries/core
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/console/src/libraries/core/CMakeLists.txt

    r5929 r5968  
    2929  GraphicsManager.cc
    3030  GUIManager.cc
     31  IOConsole.cc
    3132  Language.cc
    3233  LuaState.cc
  • code/branches/console/src/libraries/core/input/InputBuffer.cc

    r5781 r5968  
    186186    void InputBuffer::processKey(const KeyEvent& evt)
    187187    {
     188        // Prevent disaster when switching applications
    188189        if (evt.isModifierDown(KeyboardModifier::Alt) && evt.getKeyCode() == KeyCode::Tab)
    189190            return;
     
    222223
    223224    /**
    224         @brief This update() function is called by the InputManager if the InputBuffer is active.
     225        @brief This update() function is called by the InputState if the InputBuffer is active.
    225226        @param dt Delta time
    226227    */
  • code/branches/console/src/libraries/core/input/InputBuffer.h

    r5781 r5968  
    162162                { if (this->cursor_ > 0) { --this->cursor_; } }
    163163
     164            void buttonPressed(const KeyEvent& evt);
     165
    164166        private:
    165167            bool charIsAllowed(const char& input);
    166168
    167             void buttonPressed(const KeyEvent& evt);
    168169            void buttonHeld   (const KeyEvent& evt);
    169170            void processKey   (const KeyEvent& evt);
  • code/branches/console/src/libraries/core/input/InputHandler.h

    r5781 r5968  
    7272            , text_(evt.text)
    7373            , modifiers_(0)
     74        { }
     75        KeyEvent(KeyCode::ByEnum key, unsigned int text, int modifiers)
     76            : key_(key)
     77            , text_(text)
     78            , modifiers_(modifiers)
    7479        { }
    7580        bool operator==(const KeyEvent& rhs) const
Note: See TracChangeset for help on using the changeset viewer.