Controller.h 509 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef CONTROLLER_H
  2. #define CONTROLLER_H
  3. #include "gaming-core/input/Buttons.h"
  4. #include "gaming-core/math/Vector.h"
  5. class Controller {
  6. Buttons& buttons;
  7. public:
  8. Button left;
  9. Button right;
  10. Button up;
  11. Button down;
  12. Button jump;
  13. Button sneak;
  14. Button camLeft;
  15. Button camRight;
  16. Button camUp;
  17. Button camDown;
  18. Button leftClick;
  19. Button rightClick;
  20. Controller(Buttons& buttons);
  21. Vector2 getMouse() const;
  22. Vector2 getMouseChange() const;
  23. };
  24. #endif