Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

SDLSystem.h

Go to the documentation of this file.
00001 
00006 
00007 #ifndef __SDLSYSTEM_H
00008 #define __SDLSYSTEM_H
00009 
00010 
00011 #include <SDL/SDL.h>
00012 
00013 #include "SCA_ISystem.h"
00014 
00015 
00016 SCA_ISystem* NewSDLSystem(void);
00017 
00018 
00019 class SDLSystem : public SCA_ISystem
00020 {
00021 public:
00022         SDLSystem();  // : SCA_ISystem() {};
00023         virtual void NextFrame();
00024         virtual void StartMainLoop();
00025   int HandleEvent(SDL_Event *event);
00026         virtual double GetTimeInSeconds();
00027 //      virtual bool IsPressed(SCA_IInputDevice::KX_EnumInputs inputcode);
00028         virtual void Sleep(int millisec) {}
00029 #if 0
00030         virtual SCA_KeyList *GetKeyboardEvents();
00031         virtual SCA_KeyList* GetMouseEvents();
00032 #endif
00033         void AddKey(SDLKey /*unsigned char*/ key, bool down);
00034 };
00035 
00036 
00037 #endif //__SDLSYSTEM_H

Generated at Thu Feb 1 13:03:11 2001 for Ketsji Game Engine by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000