Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 24, 2013, 11:15:46 AM (12 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/InputState.cc

    r9790 r9805  
    4949            priority_ = 0;
    5050
    51         handlers_.resize(InputDeviceEnumerator::FirstJoyStick + this->getJoyStickList().size(), NULL);
     51        // SANDRO HACK: make this 1 larger so we can have the wiimote read out as well
     52        //handlers_.resize(InputDeviceEnumerator::FirstJoyStick + this->getJoyStickList().size(), NULL);
     53        handlers_.resize(InputDeviceEnumerator::FirstJoyStick
     54          + 1 +  this->getJoyStickList().size(), NULL);
    5255    }
    5356
     
    98101        setMouseHandler(handler);
    99102        setJoyStickHandler(handler);
     103        setWiiMoteHandler(handler); // SANDRO HACK
    100104    }
    101105
Note: See TracChangeset for help on using the changeset viewer.