You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

53 lines
1011 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 Stick class
  12. // ---------------
  13. //
  14. #if !defined __LOL_INPUT_STICK_H__
  15. #define __LOL_INPUT_STICK_H__
  16. #include "entity.h"
  17. namespace lol
  18. {
  19. class StickData;
  20. class Stick : public Entity
  21. {
  22. friend class Input;
  23. public:
  24. void SetAxisCount(int n);
  25. void SetButtonCount(int n);
  26. void SetAxis(int n, float val);
  27. void SetButton(int n, int val);
  28. void RemapAxis(int src, int dst);
  29. void RemapButton(int src, int dst);
  30. int GetAxisCount();
  31. int GetButtonCount();
  32. float GetAxis(int n);
  33. int GetButton(int n);
  34. private:
  35. Stick();
  36. ~Stick();
  37. StickData *m_data;
  38. };
  39. } /* namespace lol */
  40. #endif // __LOL_INPUT_STICK_H__