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/

Location:
code/branches/wiimote/src/libraries/core/input
Files:
2 added
3 edited

Legend:

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

    r9706 r9723  
    1414  Mouse.cc
    1515  Wiimote_Test.cc
     16  WiiMote.cc
    1617)
  • 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()
  • code/branches/wiimote/src/libraries/core/input/InputManager.h

    r8729 r9723  
    3737#include <boost/function.hpp>
    3838
     39
    3940#include "util/Singleton.h"
    4041#include "util/tribool.h"
    4142#include "core/WindowEventListener.h"
     43
     44
    4245
    4346// tolua_begin
     
    197200        // Internal methods
    198201        void loadDevices();
     202        void loadWiiMote();
    199203        void loadMouse();
    200204        void loadJoySticks();
Note: See TracChangeset for help on using the changeset viewer.