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
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