[Orxonox-commit 5190] r9855 - code/branches/wiimote/src/libraries/core/input

georgr at orxonox.net georgr at orxonox.net
Mon Dec 2 15:54:37 CET 2013


Author: georgr
Date: 2013-12-02 15:54:37 +0100 (Mon, 02 Dec 2013)
New Revision: 9855

Modified:
   code/branches/wiimote/src/libraries/core/input/WiiMote.cc
Log:
A should fire main lazors more reliably now

Modified: code/branches/wiimote/src/libraries/core/input/WiiMote.cc
===================================================================
--- code/branches/wiimote/src/libraries/core/input/WiiMote.cc	2013-12-02 14:53:08 UTC (rev 9854)
+++ code/branches/wiimote/src/libraries/core/input/WiiMote.cc	2013-12-02 14:54:37 UTC (rev 9855)
@@ -19,7 +19,7 @@
 		if (PWii->Poll())
 		{
 			CWiimote::EventTypes e = p->GetEvent();
-			if(p->Buttons.isPressed(CButtons::BUTTON_A))
+			if(p->Buttons.isPressed(CButtons::BUTTON_A)||p->Buttons.isJustPressed(CButtons::BUTTON_A))
 				{
 					CommandExecutor::execute("fire 0", 0, 0);
 				}




More information about the Orxonox-commit mailing list