[Orxonox-commit 5151] r9816 - code/branches/wiimote/src/libraries/core/input

georgr at orxonox.net georgr at orxonox.net
Mon Nov 25 15:50:41 CET 2013


Author: georgr
Date: 2013-11-25 15:50:41 +0100 (Mon, 25 Nov 2013)
New Revision: 9816

Modified:
   code/branches/wiimote/src/libraries/core/input/InputManager.cc
Log:
next try

Modified: code/branches/wiimote/src/libraries/core/input/InputManager.cc
===================================================================
--- code/branches/wiimote/src/libraries/core/input/InputManager.cc	2013-11-25 14:50:32 UTC (rev 9815)
+++ code/branches/wiimote/src/libraries/core/input/InputManager.cc	2013-11-25 14:50:41 UTC (rev 9816)
@@ -251,21 +251,22 @@
     	      {CWiimote::LED_1, CWiimote::LED_2,
     	       CWiimote::LED_3, CWiimote::LED_4};
     	    wiimote.SetLEDs(LED_MAP[index]);
+    	    try
+    	               {
+    	                 orxout()<< "Size of devices vector before wiimote insertion:" << devices_.size() << std::endl;
+    	                 devices_.push_back(new WiiMote(devices_.size(), *i));
+    	                 //devices_[2] = new WiiMote(devices_.size(), *(new CWiimote()));
+    	                 orxout()<< "Size of devices vector after wiimote insertion:" << devices_.size() << std::endl;
 
+    	               }
+    	               catch(std::exception& e)  //gotta catch em all
+    	               {
+    	                 orxout()<<"Exception loading WiiMote!!!1!11!";
+    	               }
 
+
     	}
-            try
-            {
-              orxout()<< "Size of devices vector before wiimote insertion:" << devices_.size() << std::endl;
-              devices_.push_back(new WiiMote(devices_.size(), *(new CWiimote())));
-              //devices_[2] = new WiiMote(devices_.size(), *(new CWiimote()));
-              orxout()<< "Size of devices vector after wiimote insertion:" << devices_.size() << std::endl;
 
-            }
-            catch(std::exception& e)  //gotta catch em all
-            {
-              orxout()<<"Exception loading WiiMote!!!1!11!";
-            }
 
     }
     //! Creates a new orxonox::Mouse




More information about the Orxonox-commit mailing list