Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/wiimote/src/libraries/core/input/Wiimote_Test.cc @ 9917

Last change on this file since 9917 was 9805, checked in by smerkli, 10 years ago
  • Converted some absolute paths into relative ones
  • Increased the handlers_ vector size by 1 as a hack to get the wiimote working in this branch (This will have to be cleanly redone once I have a better concept for wiimotes and joysticks)
  • Removed a local inputStates_ variable that georgr added in wiimote, it shadowed the one from the basis class and hence never got any entries

To be discussed with georgr on monday.

File size: 854 bytes
Line 
1/*
2 * WiimoteTest.cpp
3 *
4 *  Created on: Oct 21, 2013
5 *      Author: georgr
6 */
7
8#include "Wiimote_Test.h"
9#include "core/CoreIncludes.h"
10#include "core/command/ConsoleCommand.h"
11#include "InputState.h"
12#include "InputManager.h"
13#include <util/UtilPrereqs.h>
14#include <util/ScopedSingletonManager.h>
15
16
17namespace orxonox
18{
19        ManageScopedSingleton(Wiimote_Test, ScopeID::Root, false);
20
21        Wiimote_Test::Wiimote_Test()
22        {
23                RegisterObject(Wiimote_Test);
24
25        }
26
27        Wiimote_Test::~Wiimote_Test() {
28                // TODO Auto-generated destructor stub
29        }
30
31        void Wiimote_Test::tick(float dt)
32        {
33                IntVector2 abs(10,50);
34                IntVector2 rel(50, 20);
35                IntVector2 clippingSize(1680, 1050);
36                InputManager * myIM = &(InputManager::getInstance());
37                InputState * gameState = myIM->getState("game");
38                gameState->mouseMoved(abs, rel, clippingSize);
39                orxout()<<"I'm a huge faggot";
40        }
41}
Note: See TracBrowser for help on using the repository browser.