12345678910111213141516171819202122232425262728293031 |
- #ifndef CONTROLLER_H
- #define CONTROLLER_H
- #include "input/Buttons.h"
- #include "math/Vector.h"
- class Controller {
- Buttons& buttons;
- public:
- Button left;
- Button right;
- Button up;
- Button down;
- Button jump;
- Button sneak;
- Button camLeft;
- Button camRight;
- Button camUp;
- Button camDown;
- Button leftClick;
- Button rightClick;
- Controller(Buttons& buttons);
- Vector2 getMouse() const;
- Vector2 getMouseChange() const;
- };
- #endif
|