Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

InputProvider.h

Go to the documentation of this file.
00001 #ifndef HEADER_INPUTPROVIDER_H
00002 #define HEADER_INPUTPROVIDER_H
00003 
00004 #include "V2.h"
00005 
00006 #include "SDL.h"
00007 #include <string>
00008 
00009 /**
00010  * Interface to pressed keys and mouse location.
00011  */
00012 class InputProvider {
00013     public:
00014         virtual ~InputProvider() {}
00015         virtual bool isPressed(SDLKey key) const = 0;
00016         virtual bool isLeftPressed() const = 0;
00017         virtual bool isRightPressed() const = 0;
00018         virtual bool isMiddlePressed() const = 0;
00019         virtual V2 getMouseLoc() const = 0;
00020         virtual std::string toString() const = 0;
00021 };
00022 
00023 #endif

Generated on Wed Jun 1 09:54:31 2005 for Fish Fillets - Next Generation by  doxygen 1.4.2