If I move the mouse out of the node-webkit game window, I lose my custom mouse cursor.
Sometimes I get it back, sometimes I don't. Sometimes I don't even get a regular mouse cursor, I just get a sideways resize cursor.
You'd think that just clicking in the game area would get it back, but no. That'd be too easy.
The problem is inconsistent and does it whenever it wants.
Now, if I extend the borders of the node-webkit window so it creates a letterbox around the game, I get my mouse cursor back, but ONLY if the cursor goes over the black area of the letterbox.
This does not seem to be specific to my game. I started a blank game and set the mouse cursor to custom, and it still behaves the same. Most of the time, I get the standard Windows mouse cursor or even the stupid resize handle cursor.
I even tried setting it to every tick set mouse cursor to custom sprite, but no.
I don't know if this is a new problem or not. I've been using Chrome most of the time and just recently started using Node-webkit to preview. It does the same on export. I'm using the latest beta release, but like I said I didn't test it with the last couple of releases, so who knows if it's new or not.
The only thing I can do to get my custom cursor back is to activate something in game that triggers a different cursor such as "cursor over enemy, set to sword sprite", other than something like that, I can't get it back.
Unless there is something I don't understand about setting a mouse cursor from sprite, then I don't know how to fix this. Like I said, it is specific to node-webkit which I what I want to use when I release my game. Even in Chrome and resizing Chrome so my cursor can leave the screen, it comes back just fine. I'm using Win 7 if it matters.