Advertisement
slaanani

FDF enums

Dec 23rd, 2019
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. typedef enum e_event_code
  2. {
  3. MOUSE_PRESS_CODE = 4,
  4. MOUSE_MOVE_CODE = 6,
  5. KEY_PRESS_CODE = 2,
  6. KEY_RELEASE_CODE = 3,
  7. RED_BUTTON_CODE = 17,
  8. } t_event_code;
  9. typedef enum e_ft_mlx_hooks
  10. {
  11. NO_EVENT_HOOK = 0,
  12. MOUSE_PRESS_HOOK = 1,
  13. MOUSE_MOVE_HOOK = 2,
  14. KEY_PRESS_HOOK = 4,
  15. RED_BUTTON_HOOK = 8,
  16. } t_ft_mlx_hooks;
  17. typedef enum e_key_code
  18. {
  19. LEFT_CLICK = 1,
  20. RIGHT_CLICK = 2,
  21. SCROLL_UP = 4,
  22. SCROLL_DOWN = 5,
  23. ZOOM_IN = 69,
  24. ZOOM_OUT = 78,
  25. SPACE = 49,
  26. NUM_LOCK_9 = 92,
  27. NUM_LOCK_8 = 91,
  28. NUM_LOCK_7 = 89,
  29. NUM_LOCK_6 = 88,
  30. NUM_LOCK_5 = 87,
  31. NUM_LOCK_4 = 86,
  32. NUM_LOCK_3 = 85,
  33. NUM_LOCK_2 = 84,
  34. NUM_LOCK_1 = 83,
  35. NUM_LOCK_0 = 82,
  36. RIGHT_ARROW = 124,
  37. LEFT_ARROW = 123,
  38. UP_ARROW = 126,
  39. DOWN_ARROW = 125,
  40. } t_key_code;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement