Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 12, 2009, 4:12:04 PM (15 years ago)
Author:
rgrieder
Message:

Added a few more generic parts to the input library:

  • Created Mouse and Keyboard to join JoyStick and provided them with a templated base class (InputDeviceTemplated) that does most of the work (reduces quite some redundancy)
  • Created InputPrereqs.h from InputInterfaces.h and destroyed the latter
  • Exported InputHandler to its own file and replaced KeyHandler, MouseHandler and JoyStickHandler with the single InputHandler.
  • Deleted the SimpleInputState: There is only one class now which fulfills all our needs.

In general there is now less code and the code itself has more 'pluses'. However I haven't really thrown away any feature at all.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core4/src/orxonox/gui/GUIManager.cc

    r3261 r3274  
    366366    void GUIManager::keyPressed(const KeyEvent& evt)
    367367    {
    368         guiSystem_->injectKeyDown(evt.key); guiSystem_->injectChar(evt.text);
     368        guiSystem_->injectKeyDown(evt.getKeyCode());
     369        guiSystem_->injectChar(evt.getText());
    369370    }
    370371    void GUIManager::keyReleased(const KeyEvent& evt)
    371372    {
    372         guiSystem_->injectKeyUp(evt.key);
     373        guiSystem_->injectKeyUp(evt.getKeyCode());
    373374    }
    374375
     
    382383        It is for CEGUI to process the event.
    383384    */
    384     void GUIManager::mouseButtonPressed(MouseButtonCode::ByEnum id)
     385    void GUIManager::buttonPressed(MouseButtonCode::ByEnum id)
    385386    {
    386387        try
     
    404405        It is for CEGUI to process the event.
    405406    */
    406     void GUIManager::mouseButtonReleased(MouseButtonCode::ByEnum id)
     407    void GUIManager::buttonReleased(MouseButtonCode::ByEnum id)
    407408    {
    408409        try
Note: See TracChangeset for help on using the changeset viewer.