Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by MonsterX. 12/05/25 02:43
ZorroFix. ini /data and /log path
by Martin_HH. 12/02/25 11:42
Parameter selection
by jcl. 12/01/25 12:28
ZorroGPT
by TipmyPip. 11/29/25 09:38
webGL
by Ezzett. 11/27/25 23:22
Chart viewer
by clint000. 11/27/25 21:21
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 20,786 guests, and 11 spiders.
Key: Admin, Global Mod, Mod
Newest Members
agasior, mosfet, MonsterX, KF_Investments, Luuk
19186 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Stop engine from changing mouse cursor to finger. #461987
09/01/16 02:07
09/01/16 02:07
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Offline OP
Senior Expert
Quad  Offline OP
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
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.


3333333333
Re: Stop engine from changing mouse cursor to finger. [Re: Quad] #461988
09/01/16 08:10
09/01/16 08:10
Joined: Jul 2000
Posts: 28,035
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,035
Frankfurt
For setting your own mouse pointer, look here: http://manual.3dgamestudio.net/mouse_pointer.htm.

Re: Stop engine from changing mouse cursor to finger. [Re: jcl] #462012
09/02/16 23:18
09/02/16 23:18
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Offline OP
Senior Expert
Quad  Offline OP
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
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.

Last edited by Quad; 09/02/16 23:19.

3333333333

Moderated by  old_bill, Tobias 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1