Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the mouse cursor to a mouse #14

Open
crgimenes opened this issue Sep 20, 2023 · 0 comments
Open

Change the mouse cursor to a mouse #14

crgimenes opened this issue Sep 20, 2023 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@crgimenes
Copy link
Owner

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 crgimenes added enhancement New feature or request help wanted Extra attention is needed labels Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant