Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 26, 2008, 11:36:50 AM (16 years ago)
Author:
rgrieder
Message:
  • added SetConfigValueGeneric to set the config value of the actual class when using hierarchies
  • fixed a bug when handling derived mouse input
  • refined 'keybind' command so that input goes to KeyDetector only
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/core/InputManager.h

    r1426 r1428  
    6565  public:
    6666    IntVector2 sliderStates[4];
     67  };
     68
     69  /**
     70  * Struct for storing a custom input state
     71  */
     72  struct StoredState
     73  {
     74    std::vector<KeyHandler*>                    activeKeyHandlers_;
     75    std::vector<MouseHandler*>                  activeMouseHandlers_;
     76    std::vector<std::vector<JoyStickHandler*> > activeJoyStickHandlers_;
     77    std::vector<std::pair<InputTickable*, HandlerState> > activeHandlers_;
    6778  };
    6879
     
    158169    void _updateTickables();
    159170
     171    void _saveState();
     172    void _restoreState();
     173
    160174    void tick(float dt);
    161175
     
    191205    unsigned int keyboardModifiers_;
    192206    InputState savedState_;
     207    StoredState savedHandlers_;
    193208
    194209    //! Keeps track of the joy stick POV states
Note: See TracChangeset for help on using the changeset viewer.