Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

44 righe
782 B

  1. //
  2. // Lol Engine
  3. //
  4. // Copyright: (c) 2010-2012 Sam Hocevar <sam@hocevar.net>
  5. // This program is free software; you can redistribute it and/or
  6. // modify it under the terms of the Do What The Fuck You Want To
  7. // Public License, Version 2, as published by Sam Hocevar. See
  8. // http://sam.zoy.org/projects/COPYING.WTFPL for more details.
  9. //
  10. //
  11. // The Keyboard class
  12. // ------------------
  13. //
  14. #if !defined __LOL_INPUT_KEYBOARD_H__
  15. #define __LOL_INPUT_KEYBOARD_H__
  16. #include "entity.h"
  17. namespace lol
  18. {
  19. class KeyboardData;
  20. class Keyboard : public Entity
  21. {
  22. friend class Input;
  23. public:
  24. void PushChar(uint32_t ch);
  25. uint32_t PopChar();
  26. private:
  27. Keyboard();
  28. ~Keyboard();
  29. KeyboardData *m_data;
  30. };
  31. } /* namespace lol */
  32. #endif // __LOL_INPUT_KEYBOARD_H__