Debian Codegraph @

src/gengine/InputProvider.h

raw
1 #ifndef HEADER_INPUTPROVIDER_H
2 #define HEADER_INPUTPROVIDER_H
3
4 #include "V2.h"
5
6 #include "SDL.h"
7 #include <string>
8
9 /**
10 * Interface to pressed keys and mouse location.
11 */
12 class InputProvider {
13 public:
14 virtual ~InputProvider() {}
15 virtual bool isPressed(SDLKey key) const = 0;
16 virtual bool isLeftPressed() const = 0;
17 virtual bool isRightPressed() const = 0;
18 virtual bool isMiddlePressed() const = 0;
19 virtual V2 getMouseLoc() const = 0;
20 virtual std::string toString() const = 0;
21 };
22
23 #endif