neko icon indicating copy to clipboard operation
neko copied to clipboard

Change the mouse cursor to a mouse

Open crgimenes opened this issue 2 years ago • 0 comments

The ebitengine does not support changing the mouse cursor, but there are some possibilities, the code below still needs to be tested.

unsigned char pixels[16 * 16 * 4];
memset(pixels, 0xff, sizeof(pixels));
 
GLFWimage image;
image.width = 16;
image.height = 16;
image.pixels = pixels;
 
GLFWcursor* cursor = glfwCreateCursor(&image, 0, 0);

crgimenes avatar Sep 20 '23 20:09 crgimenes