Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

57 рядки
1.0 KiB

  1. //
  2. // Lol Engine
  3. //
  4. // Copyright: (c) 2010-2013 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://www.wtfpl.net/ for more details.
  9. //
  10. //
  11. // The Stick class
  12. // ---------------
  13. //
  14. #if !defined __LOL_INPUT_STICK_H__
  15. #define __LOL_INPUT_STICK_H__
  16. #include "entity.h"
  17. #ifndef LOL_INPUT_V2
  18. namespace lol
  19. {
  20. class StickData;
  21. class Stick : public Entity
  22. {
  23. friend class Input;
  24. public:
  25. void SetAxisCount(int n);
  26. void SetButtonCount(int n);
  27. void SetAxis(int n, float val);
  28. void SetButton(int n, int val);
  29. void RemapAxis(int src, int dst);
  30. void RemapButton(int src, int dst);
  31. int GetAxisCount();
  32. int GetButtonCount();
  33. float GetAxis(int n);
  34. int GetButton(int n);
  35. private:
  36. Stick();
  37. ~Stick();
  38. StickData *m_data;
  39. };
  40. } /* namespace lol */
  41. #endif // !LOL_INPUT_V2
  42. #endif // __LOL_INPUT_STICK_H__