[Orxonox-commit 5154] r9819 - code/branches/wiimote/src/libraries/core/input
georgr at orxonox.net
georgr at orxonox.net
Mon Nov 25 16:01:40 CET 2013
Author: georgr
Date: 2013-11-25 16:01:39 +0100 (Mon, 25 Nov 2013)
New Revision: 9819
Modified:
code/branches/wiimote/src/libraries/core/input/InputManager.cc
code/branches/wiimote/src/libraries/core/input/WiiMote.cc
Log:
... another test, sorry for the many commits, will fix
this issue soon so we don't have to debug across boxes
Modified: code/branches/wiimote/src/libraries/core/input/InputManager.cc
===================================================================
--- code/branches/wiimote/src/libraries/core/input/InputManager.cc 2013-11-25 15:01:10 UTC (rev 9818)
+++ code/branches/wiimote/src/libraries/core/input/InputManager.cc 2013-11-25 15:01:39 UTC (rev 9819)
@@ -264,8 +264,8 @@
orxout()<<"Exception loading WiiMote!!!1!11!";
}
- exit(0);
+
}
Modified: code/branches/wiimote/src/libraries/core/input/WiiMote.cc
===================================================================
--- code/branches/wiimote/src/libraries/core/input/WiiMote.cc 2013-11-25 15:01:10 UTC (rev 9818)
+++ code/branches/wiimote/src/libraries/core/input/WiiMote.cc 2013-11-25 15:01:39 UTC (rev 9819)
@@ -10,6 +10,10 @@
void WiiMote::update(const Clock& time)
{
orxout(user_warning) << this->inputStates_.size() << std::endl;
+ if(p == NULL)
+ exit(0);
+ else
+ orxout(user_warning) << 'pointer is not null, yay' << std::endl;
CWiimote::EventTypes e = p->GetEvent();
if(p->Buttons.isPressed(CButtons::BUTTON_A))
orxout()<<"ZOMG!!1!"<<endl;
More information about the Orxonox-commit
mailing list