- Timestamp:
- Dec 9, 2013, 1:04:09 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/wiimote/src/libraries/core/input/InputManager.cc
r9856 r9876 255 255 wiimote.SetLEDs(LED_MAP[index]); 256 256 try 257 258 259 260 261 262 263 264 265 266 267 268 257 { 258 orxout()<< "Size of devices vector before wiimote insertion:" << devices_.size() << std::endl; 259 devices_.push_back(new WiiMote((unsigned int)devices_.size(), *i, wii)); 260 //devices_[2] = new WiiMote(devices_.size(), *(new CWiimote())); 261 orxout()<< "Size of devices vector after wiimote insertion:" << devices_.size() << std::endl; 262 wiimote.SetMotionSensingMode(CWiimote::ON); 263 264 } 265 catch(std::exception& e) //gotta catch em all 266 { 267 orxout()<<"Exception loading WiiMote!!!1!11!"; 268 } 269 269 270 270 … … 432 432 } 433 433 } 434 434 435 if (bUpdateRequired) 435 436 updateActiveStates(); … … 437 438 // Capture all the input and collect the function calls 438 439 // No event gets triggered here yet! 440 439 441 BOOST_FOREACH(InputDevice* device, devices_) 440 if (device != NULL )442 if (device != NULL || device->getDeviceID()!=2) 441 443 device->update(time); 444 devices_[2]->update(time); 445 442 446 443 447 // Collect function calls for the update
Note: See TracChangeset
for help on using the changeset viewer.