Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 9, 2013, 1:04:09 PM (11 years ago)
Author:
georgr
Message:

lag sorta fixed - it disappears after ~40s, but will reappear for unknown reasons

File:
1 edited

Legend:

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

    r9856 r9876  
    255255            wiimote.SetLEDs(LED_MAP[index]);
    256256            try
    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                        }
     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                   }
    269269
    270270
     
    432432            }
    433433        }
     434
    434435        if (bUpdateRequired)
    435436            updateActiveStates();
     
    437438        // Capture all the input and collect the function calls
    438439        // No event gets triggered here yet!
     440
    439441        BOOST_FOREACH(InputDevice* device, devices_)
    440             if (device != NULL)
     442            if (device != NULL || device->getDeviceID()!=2)
    441443                device->update(time);
     444        devices_[2]->update(time);
     445
    442446
    443447        // Collect function calls for the update
Note: See TracChangeset for help on using the changeset viewer.