Controller.h 653 B

123456789101112131415161718192021222324252627282930313233
  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. const ButtonList& list;
  9. const Button& left;
  10. const Button& right;
  11. const Button& up;
  12. const Button& down;
  13. const Button& jump;
  14. const Button& sneak;
  15. const Button& camLeft;
  16. const Button& camRight;
  17. const Button& camUp;
  18. const Button& camDown;
  19. const MouseList& mouseList;
  20. const Button& leftClick;
  21. const Button& rightClick;
  22. Controller(Buttons& buttons);
  23. Vector2 getMouse() const;
  24. Vector2 getMouseChange() const;
  25. };
  26. #endif