Starter project for SDL2.
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.

47 lines
763 B

  1. #ifndef IZ_ACTION_H
  2. #define IZ_ACTION_H
  3. #include "IZ_common.h"
  4. typedef uint16_t IZ_Action;
  5. static const char* ACTION_NAMES[CONTROLS] = {
  6. "Up",
  7. "Right",
  8. "Down",
  9. "Left",
  10. "Affirm",
  11. "Negate",
  12. "Action0",
  13. "Action1",
  14. "Action2",
  15. "Action3",
  16. "Action4",
  17. "Action5",
  18. "Action6",
  19. "Action7",
  20. "Action8",
  21. "Action9",
  22. };
  23. typedef enum {
  24. IZ_ACTION_INDEX_UP,
  25. IZ_ACTION_INDEX_RIGHT,
  26. IZ_ACTION_INDEX_DOWN,
  27. IZ_ACTION_INDEX_LEFT,
  28. IZ_ACTION_INDEX_AFFIRM,
  29. IZ_ACTION_INDEX_NEGATE,
  30. IZ_ACTION_INDEX_ACTION0,
  31. IZ_ACTION_INDEX_ACTION1,
  32. IZ_ACTION_INDEX_ACTION2,
  33. IZ_ACTION_INDEX_ACTION3,
  34. IZ_ACTION_INDEX_ACTION4,
  35. IZ_ACTION_INDEX_ACTION5,
  36. IZ_ACTION_INDEX_ACTION6,
  37. IZ_ACTION_INDEX_ACTION7,
  38. IZ_ACTION_INDEX_ACTION8,
  39. IZ_ACTION_INDEX_ACTION9,
  40. } IZ_ActionIndex;
  41. #endif