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