Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 28, 2013, 4:07:58 PM (11 years ago)
Author:
georgr
Message:

New way to output insulting messages \o/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/wiimote/src/libraries/core/input/InputManager.cc

    r9667 r9723  
    5858#include "Keyboard.h"
    5959
     60#include "WiiMote.h"
     61
    6062namespace orxonox
    6163{
     
    218220        // Reorder states in case some joy sticks were added/removed
    219221        this->updateActiveStates();
    220 
     222        this->loadWiiMote();
    221223        orxout(verbose, context::input) << "Input devices loaded." << endl;
    222224    }
    223 
     225    void InputManager::loadWiiMote()
     226    {
     227        try
     228        {
     229                devices_.push_back(new WiiMote(234));
     230        }
     231        catch(std::exception& e)  //gotta catch em all
     232        {
     233                orxout()<<"Exception loading WiiMote!!!1!11!";
     234        }
     235    }
    224236    //! Creates a new orxonox::Mouse
    225237    void InputManager::loadMouse()
Note: See TracChangeset for help on using the changeset viewer.