Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9816


Ignore:
Timestamp:
Nov 25, 2013, 3:50:41 PM (11 years ago)
Author:
georgr
Message:

next try

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/wiimote/src/libraries/core/input/InputManager.cc

    r9813 r9816  
    252252               CWiimote::LED_3, CWiimote::LED_4};
    253253            wiimote.SetLEDs(LED_MAP[index]);
     254            try
     255                       {
     256                         orxout()<< "Size of devices vector before wiimote insertion:" << devices_.size() << std::endl;
     257                         devices_.push_back(new WiiMote(devices_.size(), *i));
     258                         //devices_[2] = new WiiMote(devices_.size(), *(new CWiimote()));
     259                         orxout()<< "Size of devices vector after wiimote insertion:" << devices_.size() << std::endl;
     260
     261                       }
     262                       catch(std::exception& e)  //gotta catch em all
     263                       {
     264                         orxout()<<"Exception loading WiiMote!!!1!11!";
     265                       }
    254266
    255267
    256268        }
    257             try
    258             {
    259               orxout()<< "Size of devices vector before wiimote insertion:" << devices_.size() << std::endl;
    260               devices_.push_back(new WiiMote(devices_.size(), *(new CWiimote())));
    261               //devices_[2] = new WiiMote(devices_.size(), *(new CWiimote()));
    262               orxout()<< "Size of devices vector after wiimote insertion:" << devices_.size() << std::endl;
    263 
    264             }
    265             catch(std::exception& e)  //gotta catch em all
    266             {
    267               orxout()<<"Exception loading WiiMote!!!1!11!";
    268             }
     269
    269270
    270271    }
Note: See TracChangeset for help on using the changeset viewer.