cursor-capture.h 569 B

1234567891011121314151617
  1. #pragma once
  2. #include <stdint.h>
  3. struct cursor_data {
  4. gs_texture_t *texture;
  5. HCURSOR current_cursor;
  6. POINT cursor_pos;
  7. long x_hotspot;
  8. long y_hotspot;
  9. bool visible;
  10. };
  11. extern void cursor_capture(struct cursor_data *data);
  12. extern void cursor_draw(struct cursor_data *data, long x_offset, long y_offset,
  13. float x_scale, float y_scale, long width, long height);
  14. extern void cursor_data_free(struct cursor_data *data);