Gamestudio Links
Zorro Links
Newest Posts
Training with the R bridge does not work
by frutza. 11/20/25 22:32
Zorro 2.70
by Martin_HH. 11/20/25 17:37
Zorro 2.66
by Martin_HH. 11/20/25 17:28
ZorroGPT
by TipmyPip. 11/19/25 10:10
MRC.c and WFO
by 11honza11. 11/18/25 15:22
webGL
by Ice2642. 11/17/25 21:27
Camera always moves upwards?
by NeoDumont. 11/17/25 09:56
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (NeoDumont, TipmyPip, 1 invisible), 32,394 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
SkinnyApe, tritom, sheliepaley, Blueguy, blobplayintennis
19179 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Mouse Pointer Problem #277677
07/10/09 06:18
07/10/09 06:18
Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
F
flutschi Offline OP
Junior Member
flutschi  Offline OP
Junior Member
F

Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
Hi there,


I have a little 3d-fps-game going, but have a problem with hiding the MousePointer if the game isnt Full-Screen..
and that the MousePointer keep staying in the window smile

anyone can help?

Thx!


My System:
Intel Core 2 Duo CPU P8400 @ 2.26 GHz
4 GB Ram
NVIDIA GeForce 9600M GT
32 Bit Windows Vista
***********************************
Gamestudio Pro 7.50 / WED V6.875
Re: Mouse Pointer Problem [Re: flutschi] #277686
07/10/09 07:35
07/10/09 07:35
Joined: Dec 2008
Posts: 528
Wagga, Australia
the_mehmaster Offline
User
the_mehmaster  Offline
User

Joined: Dec 2008
Posts: 528
Wagga, Australia
add this line when you do not want the mouse pointer:
Code:
mouse_mode = 0;



Re: Mouse Pointer Problem [Re: the_mehmaster] #277827
07/10/09 22:13
07/10/09 22:13
Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
F
flutschi Offline OP
Junior Member
flutschi  Offline OP
Junior Member
F

Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
Well, i added the code, but nothing happened..

code look like this now:

Code:
void main()
{
	wait(1);
	level_load("lvl.wmb");
	wait(1);
	on_t = use;
        mouse_mode = 0;
}



and what do i have to do, that the mousepointer cant go out of the window?


My System:
Intel Core 2 Duo CPU P8400 @ 2.26 GHz
4 GB Ram
NVIDIA GeForce 9600M GT
32 Bit Windows Vista
***********************************
Gamestudio Pro 7.50 / WED V6.875
Re: Mouse Pointer Problem [Re: flutschi] #277952
07/11/09 16:21
07/11/09 16:21
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
#include <windows.h>

and in a while(1) Loop:

SetCursorPos (screen_size.x / 2,screen_size.y / 2);

That set the Windows System Mouse at the middle of the Screen (behind the Game - Window)


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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