home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / Xenon / XenonSource.exe / gamesystem / includes / gs_input.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-04-29  |  1010 b   |  53 lines

  1. //-------------------------------------------------------------
  2. //
  3. // Class:    gsCInput
  4. //
  5. // Author:    John M Phillips
  6. //
  7. // Started:    12/03/00
  8. //
  9. // Base:    gsCObject
  10. //
  11. // Derived:    gsCKeyboard
  12. //            gsCMouse
  13. //            gsCJoystick
  14. //
  15. //-------------------------------------------------------------
  16.  
  17. #ifndef _INCLUDE_GS_INPUT_H
  18. #define _INCLUDE_GS_INPUT_H
  19.  
  20. #include "gs_object.h"
  21. #include "gs_application.h"
  22.  
  23. //-------------------------------------------------------------
  24.  
  25. class gsCInput : public gsCObject
  26. {
  27.     friend class gsCApplication;
  28.  
  29.     protected:
  30.         static gsLPDIRECTINPUT m_direct_input;
  31.         static gsCList<gsCInput *> m_active_inputs;
  32.  
  33.         static bool initialize();
  34.         static bool shutdown();
  35.  
  36.         static bool acquireAll();
  37.         static bool updateAll();
  38.         
  39.     public:
  40.  
  41.         gsCInput();
  42.         virtual ~gsCInput();
  43.  
  44.         virtual bool acquire() = 0;
  45.         virtual bool update() = 0;
  46.         virtual bool isActive() = 0; 
  47. };
  48.  
  49. //-------------------------------------------------------------
  50.  
  51. #endif
  52.  
  53.