Gamestudio Links
Zorro Links
Newest Posts
Z9 getting Error 058
by k_ivan. 04/25/26 19:13
ZorroGPT
by TipmyPip. 04/25/26 16:09
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (AndrewAMD), 3,688 guests, and 20 spiders.
Key: Admin, Global Mod, Mod
Newest Members
valino, juergenwue, VladMak, Geir, ondrej
19209 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,034
Budapest
Aku_Aku Offline
Serious User
Aku_Aku  Offline
Serious User

Joined: Sep 2009
Posts: 1,034
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