mouse.h 328 B

1234567891011121314151617181920
  1. #pragma once
  2. typedef enum {
  3. LEFT_CLICK = 0x01,
  4. RIGHT_CLICK = 0x02,
  5. MIDDLE_CLICK = 0x04,
  6. MOUSE_SCROLL_UP = 0x10,
  7. MOUSE_SCROLL_DOWN = 0x20,
  8. } mouse_click_t;
  9. typedef struct {
  10. uint32_t magic;
  11. int32_t x_difference;
  12. int32_t y_difference;
  13. mouse_click_t buttons;
  14. } mouse_device_packet_t;
  15. #define MOUSE_MAGIC 0xFEED1234