Hi,
I am trying to set a custom SDL cursor from a raw RGBA8888 byte array. The handle creation successfully works, as it returns a valid SDL surface handle, but trying to set the cursor using SDL_SetCursor does nothing, like does not change the cursor.
The SDL_SetCursor does not return a value etiher so I just manually tried to print the error code using SDL_GetError() and it says: “Cursor not associated with the current mouse”
It sounds like you want to call SDL_CreateColorCursor() with your surface and then use the returned cursor instead of passing the surface directly to SDL_SetCursor().