home *** CD-ROM | disk | FTP | other *** search
/ Game.EXE 2002 June / Game.EXE_06_2002.iso / Alawar / Lib / InputForGameExe / InputManagerPtr.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2002-04-26  |  279 b   |  19 lines

  1. #include "InputManagerPtr.h"
  2. #include <safe_new.h>
  3.  
  4. InputManager * InputManagerPtr::man = 0;
  5.  
  6. void InputManagerPtr::destroy()
  7. {
  8.     delete man; man = 0;
  9. }
  10.  
  11. InputManager * InputManagerPtr::operator->()
  12. {
  13.     if( !man )
  14.     {
  15.         man = new InputManager();
  16.     }
  17.     return man;
  18. }
  19.