Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 14, 2008, 10:50:08 PM (16 years ago)
Author:
rgrieder
Message:
  • TestConsole should work now
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/core/InputBuffer.cc

    r1062 r1066  
    3838    InputBuffer::InputBuffer()
    3939    {
    40         this->bActivated_ = false;
     40        //this->bActivated_ = false;
    4141        this->allowedChars_ = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZäöüÄÖÜ0123456789 \\\"().:,;_-+*/=!?<>[|]";
    4242        this->keyboard_ = InputManager::getSingleton().getKeyboard();
    4343        this->buffer_ = "";
    4444
    45         this->keyboard_->setEventCallback(this);
     45        //this->keyboard_->setEventCallback(this);
    4646    }
    4747/*
     
    114114    }
    115115
    116     void InputBuffer::activityChanged() const
     116    /*void InputBuffer::activityChanged() const
    117117    {
    118     }
     118    }*/
    119119
    120120    bool InputBuffer::charIsAllowed(const char& input)
     
    128128    bool InputBuffer::keyPressed(const OIS::KeyEvent &e)
    129129    {
    130         if (e.key == OIS::KC_NUMPADENTER)
     130        /*if (e.key == OIS::KC_NUMPADENTER)
    131131        {
    132132            this->setActivated(!this->isActivated());
    133133            this->clear();
    134134            return true;
    135         }
     135        }*/
    136136
    137137        if (this->keyboard_->isModifierDown(OIS::Keyboard::Ctrl))
     
    169169        }
    170170
    171         if (this->bActivated_)
    172         {
    173 //std::cout << this->keyboard_->getAsString(e.key) << " / " << (char)e.text << std::endl;
    174 /*
    175             std::string input = this->keyboard_->getAsString(e.key);
    176             if (input.size() >= 1)
    177                 this->append(input[0]);
    178 */
    179             this->append((char)e.text);
    180         }
     171        //std::cout << this->keyboard_->getAsString(e.key) << " / " << (char)e.text << std::endl;
     172
     173        std::string input = this->keyboard_->getAsString(e.key);
     174        /*if (input.size() >= 1)
     175            this->append(input[0]);*/
     176
     177        this->append((char)e.text);
    181178        return true;
    182179    }
Note: See TracChangeset for help on using the changeset viewer.