Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 13, 2009, 10:43:59 PM (15 years ago)
Author:
rgrieder
Message:

Finally found a satisfying way to deal with interfaces that deliver information, but only upon virtual call.
The solution involves a static variable but any other (and uglier/hackier) solution will do so too.
I applied the method the the JoyStickQuantityListener so that the KeyBinder is now independent on the InputManager.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core4/src/core/input/KeyDetector.cc

    r3274 r3288  
    7373    }
    7474
    75     void KeyDetector::JoyStickQuantityChanged(unsigned int value)
     75    void KeyDetector::JoyStickQuantityChanged(const std::vector<JoyStick*>& joyStickList)
    7676    {
    77         KeyBinder::JoyStickQuantityChanged(value);
     77        KeyBinder::JoyStickQuantityChanged(joyStickList);
    7878        setCallbackCommand(callbackCommand_);
    7979    }
Note: See TracChangeset for help on using the changeset viewer.