Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 24, 2013, 11:15:46 AM (10 years ago)
Author:
smerkli
Message:
  • Converted some absolute paths into relative ones
  • Increased the handlers_ vector size by 1 as a hack to get the wiimote working in this branch (This will have to be cleanly redone once I have a better concept for wiimotes and joysticks)
  • Removed a local inputStates_ variable that georgr added in wiimote, it shadowed the one from the basis class and hence never got any entries

To be discussed with georgr on monday.

File:
1 edited

Legend:

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

    r9790 r9805  
    254254
    255255        }
    256             try
    257             {
    258                 orxout()<<devices_.size();
    259                     devices_.push_back(new WiiMote(devices_.size(), *(new CWiimote())));
    260                 //devices_[2] = new WiiMote(devices_.size(), *(new CWiimote()));
    261 
    262             }
    263             catch(std::exception& e)  //gotta catch em all
    264             {
    265                       orxout()<<"Exception loading WiiMote!!!1!11!";
    266             }
     256            try
     257            {
     258              orxout()<< "Size of devices vector before wiimote insertion:" << devices_.size() << std::endl;
     259              devices_.push_back(new WiiMote(devices_.size(), *(new CWiimote())));
     260              //devices_[2] = new WiiMote(devices_.size(), *(new CWiimote()));
     261              orxout()<< "Size of devices vector after wiimote insertion:" << devices_.size() << std::endl;
     262
     263            }
     264            catch(std::exception& e)  //gotta catch em all
     265            {
     266              orxout()<<"Exception loading WiiMote!!!1!11!";
     267            }
    267268
    268269    }
     
    475476                if (rit->second->isInputDeviceEnabled(i) && (!occupied || rit->second->bAlwaysGetsInput_))
    476477                {
    477                         orxout() << "Success with ID " << i <<std::endl;
     478                    orxout() << "Success with ID " << i <<std::endl;
    478479                    states.push_back(rit->second);
    479480                    if (!rit->second->bTransparent_)
Note: See TracChangeset for help on using the changeset viewer.