Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 30, 2009, 11:07:06 AM (15 years ago)
Author:
rgrieder
Message:

Added preUpdate and postUpdate methods for all classes inheriting Singleton. Replaced update() with preUpdate except for the GraphicsManager (postUpdate).
However this does not apply to the Client and Server singletons in the network library. We should think about putting them in a scope as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/libraries/core/input/InputManager.h

    r6150 r6183  
    9999            was submitted while updating, the request will be postponed until the next update call.
    100100        */
    101         void update(const Clock& time);
     101        void preUpdate(const Clock& time);
    102102        //! Clears all input device buffers. This usually only includes the pressed button list.
    103103        void clearBuffers();
     
    108108            Reloads all the input devices. Use this method to initialise new joy sticks.
    109109        @note
    110             Only reloads immediately if the call stack doesn't include the update() method.
     110            Only reloads immediately if the call stack doesn't include the preUpdate() method.
    111111        */
    112112        void reload();
     
    157157        @remarks
    158158            - You can't remove the internal states "empty", "calibrator" and "detector".
    159             - The removal process is being postponed if InputManager::update() is currently running.
     159            - The removal process is being postponed if InputManager::preUpdate() is currently running.
    160160        */
    161161        bool destroyState(const std::string& name);
Note: See TracChangeset for help on using the changeset viewer.