InputSourceMouse.h 638 B

123456789101112131415161718192021222324
  1. /*
  2. * InputSourceMouse.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. struct SDL_MouseWheelEvent;
  12. struct SDL_MouseMotionEvent;
  13. struct SDL_MouseButtonEvent;
  14. class InputSourceMouse
  15. {
  16. public:
  17. void handleEventMouseMotion(const SDL_MouseMotionEvent & current);
  18. void handleEventMouseButtonDown(const SDL_MouseButtonEvent & current);
  19. void handleEventMouseWheel(const SDL_MouseWheelEvent & current);
  20. void handleEventMouseButtonUp(const SDL_MouseButtonEvent & current);
  21. };