Stop engine from changing mouse cursor to finger.

Posted By: Quad

Stop engine from changing mouse cursor to finger. - 09/01/16 02:07

Hello,

I want to manage mouse cursor myself. I use winapi SetCursor + LoadCursor to change cursors but engine keeps changing it back to finger/pointer cursor. The cursor flickers between what i want and the finger. Also setting a transparent mouse_map does not work either, it just flickers. Also, no, i can't use mouse_map to set the cursor image i want using a bitmap, because app has additional possible windows, which are not engine windows, that use same cursor changing mechanism.

I tried changing it every frame and every time window receives a message (in on_message). Still flickers. I think engine_frame() changes it to a finger. Is there anyway to stop this behaviour.

Also wtf, why does engine do that by default.
Posted By: jcl

Re: Stop engine from changing mouse cursor to finger. - 09/01/16 08:10

For setting your own mouse pointer, look here: http://manual.3dgamestudio.net/mouse_pointer.htm.
Posted By: Quad

Re: Stop engine from changing mouse cursor to finger. - 09/02/16 23:18

This could be useful(also could i swear that i read all manual sections starting with mouse_ more than a couple of times, still missed mouse_pointer though.), though i worked around the problem by using a transparent mousemap and drawing the cursor myself with dx9 myself on all windows. Also just setting mouse_mode to 0 and using SetCursor also flickers. I am not gonna go through all possible values and see what gives me which cursor. I just switched to using mouse_pointer=0 instead of using a transparent mouse map and still draw the cursors myself.

edit: went back to transparent mouse_map, because i want the mouse on the window frame too.
© 2024 lite-C Forums