InputSourceKeyboard.h 507 B

1234567891011121314151617181920212223
  1. /*
  2. * InputSourceKeyboard.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_KeyboardEvent;
  12. /// Class that handles keyboard input from SDL events
  13. class InputSourceKeyboard
  14. {
  15. public:
  16. InputSourceKeyboard();
  17. void handleEventKeyDown(const SDL_KeyboardEvent & current);
  18. void handleEventKeyUp(const SDL_KeyboardEvent & current);
  19. };