Gamestudio Links
Zorro Links
Newest Posts
Historical Data with the 64bit FXCM Plugin
by Martin_HH. 01/27/26 20:13
SGT_FW
by Aku_Aku. 01/27/26 15:10
ZorroGPT
by TipmyPip. 01/27/26 06:01
Buy A8 Pro Version
by Ezzett. 01/26/26 14:22
Zorro version 3.0 prerelease!
by jcl. 01/23/26 14:47
C++ direct start requires Zorro S
by jcl. 01/23/26 14:29
MRC.c and WFO
by 11honza11. 01/22/26 10:33
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (SBGuy), 9,863 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Sfrdragon, mayarik, Castromangos, Quantum, stephensdeborah
19195 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,058
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,058
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