Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (NewbieZorro, TipmyPip, 1 invisible), 19,045 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
No mouse cursor in fullscreen mode #384858
10/09/11 17:11
10/09/11 17:11
Joined: Aug 2009
Posts: 13
W
WoYoSensei Offline OP
Newbie
WoYoSensei  Offline OP
Newbie
W

Joined: Aug 2009
Posts: 13
Hi everyone. I tried to find something on this forum, but I can`t, so I`m creating this topic.
I`m just starting with 3DGS and I have little noob question. After switching to fullscreen mode in main function I have no mouse cursor. I tried in several ways, but still no cursor. In windowed mode everything is fine.
Here is my code:
Code:
function main()
{
	video_mode = 11;
	video_screen = 1;
	mouse_mode = 4;
	mouse_map = NULL;
	mouse_sync = 1;
}



As you can see, I tried in couple ways to switch on my mouse cursor, but still not working.
I will be very grateful for your help.
Regards.

Re: No mouse cursor in fullscreen mode [Re: WoYoSensei] #384859
10/09/11 17:46
10/09/11 17:46
Joined: Oct 2004
Posts: 900
Lgh
rojart Offline
User
rojart  Offline
User

Joined: Oct 2004
Posts: 900
Lgh
try this way:

[M] - Mouse off/on

Code:
#include <default.c>

#define PRAGMA_PATH "%EXE_DIR%\templates\images";

BMAP* arrow = "arrow.pcx";

function on_m_event() // switches the mouse on and off
{  
	if (mouse_mode >= 2) { // was it already on?
		mouse_mode = 0;
		} else {
		mouse_mode = 2; 
	}
}

function main()
{
	mouse_map = arrow;
	mouse_mode = 2; 
	video_screen = 1;
	
	while(1){
		while (mouse_mode > 0) // move it over the screen
		{  
			vec_set(mouse_pos,mouse_cursor);
			wait(1);
		}
		wait(1);
	}
}




Regards, Robert

Quote
Everything should be made as simple as possible, but not one bit simpler.
by Albert Einstein

PhysX Preview of Cloth, Fluid and Soft Body

A8.47.1P
Re: No mouse cursor in fullscreen mode [Re: WoYoSensei] #384860
10/09/11 17:47
10/09/11 17:47
Joined: Sep 2009
Posts: 1,032
Budapest
Aku_Aku Offline
Serious User
Aku_Aku  Offline
Serious User

Joined: Sep 2009
Posts: 1,032
Budapest
See the Manual:
mouse_pointer

One remark from there:
Quote:
In fullscreen mode the system cursors are not visible; only a mouse_map can be used for the fullscreen cursor.


Last edited by Aku_Aku; 10/09/11 17:50.
Re: No mouse cursor in fullscreen mode [Re: rojart] #384861
10/09/11 17:54
10/09/11 17:54
Joined: Aug 2009
Posts: 13
W
WoYoSensei Offline OP
Newbie
WoYoSensei  Offline OP
Newbie
W

Joined: Aug 2009
Posts: 13
Thank you, working like a dream. Thank you very much.

Re: No mouse cursor in fullscreen mode [Re: rojart] #384865
10/09/11 19:01
10/09/11 19:01
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
Originally Posted By: rojart
try this way:

[M] - Mouse off/on

Code:
#include <default.c>

#define PRAGMA_PATH "%EXE_DIR%\templates\images";

BMAP* arrow = "arrow.pcx";

function on_m_event() // switches the mouse on and off
{  
	if (mouse_mode >= 2) { // was it already on?
		mouse_mode = 0;
		} else {
		mouse_mode = 2; 
	}
}

function main()
{
	mouse_map = arrow;
	mouse_mode = 2; 
	video_screen = 1;
	
	while(1){
		while (mouse_mode > 0) // move it over the screen
		{  
			vec_set(mouse_pos,mouse_cursor);
			wait(1);
		}
		wait(1);
	}
}

a lot less code
Code:
#include <default.c>

#define PRAGMA_PATH "%EXE_DIR%\templates\images";

BMAP* arrow = "arrow.pcx";

function on_m_event()
{
	mouse_mode = 4 - mouse_mode;
}

function main()
{
	mouse_map = arrow;
	mouse_mode = 4;
	video_screen = 1;
}



Re: No mouse cursor in fullscreen mode [Re: MrGuest] #384869
10/09/11 19:37
10/09/11 19:37
Joined: Oct 2004
Posts: 900
Lgh
rojart Offline
User
rojart  Offline
User

Joined: Oct 2004
Posts: 900
Lgh
Yes with mouse_mode = 4 works simpler, instead of mouse_mode = 2


Regards, Robert

Quote
Everything should be made as simple as possible, but not one bit simpler.
by Albert Einstein

PhysX Preview of Cloth, Fluid and Soft Body

A8.47.1P

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