win-capture: Add cursor capture capability

This commit is contained in:
jp9000
2014-11-19 04:57:13 -08:00
parent a5872955f4
commit ca59b0c7d0
3 changed files with 227 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
#pragma once
#include <stdint.h>
struct cursor_data {
gs_texture_t *texture;
HCURSOR current_cursor;
POINT cursor_pos;
long x_hotspot;
long y_hotspot;
bool visible;
};
extern void cursor_capture(struct cursor_data *data);
extern void cursor_draw(struct cursor_data *data, long x_offset, long y_offset,
float x_scale, float y_scale);
extern void cursor_data_free(struct cursor_data *data);