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
0 registered members (), 18,767 guests, and 5 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
hide system mouse cursor on window mode #249164
01/31/09 18:27
01/31/09 18:27
Joined: Aug 2008
Posts: 81
J
jpxtreme Offline OP
Junior Member
jpxtreme  Offline OP
Junior Member
J

Joined: Aug 2008
Posts: 81
hello, I know this is an easy question but i can't seem to get it to work. I have my mouse_pointer set to zero in my main function but when the system mouse hover to the game it's still shows. It works in fullscreen mode but i need to make it work under window mode. I've made my custom mouse bitmap but I need to make the system mouse invisible so that it will not be paired with my cursor under window mode only. Thanks in advance! God bless.

Re: hide system mouse cursor on window mode [Re: jpxtreme] #249171
01/31/09 18:40
01/31/09 18:40
Joined: Apr 2008
Posts: 437
dracula Offline
Senior Member
dracula  Offline
Senior Member

Joined: Apr 2008
Posts: 437
This is a good question !

I need to know this as well please

Drac

Re: hide system mouse cursor on window mode [Re: dracula] #249179
01/31/09 19:16
01/31/09 19:16
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
perhaps this API Call helps:

Code:
  // Hides the Mouse
  cursor = Win32API.new("user32", "ShowCursor", "i", "i" )
  cursor.call(0) // invisible
  //cursor.call(1) // visible


Hope that helps a bit.. It´s an RGSS Call of the Mouse-View API..
perhaps someone can edit it to WDL or Lite-C

Last edited by Espér; 01/31/09 19:24.

Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: hide system mouse cursor on window mode [Re: Espér] #249180
01/31/09 19:33
01/31/09 19:33
Joined: Aug 2008
Posts: 218
U.S.
GamerX Offline
Member
GamerX  Offline
Member

Joined: Aug 2008
Posts: 218
U.S.
Why bother making the mouse invisible if your going to add a mouse map to it?
Your trying to make the system mouse invisible only to change its map? Think about it, that makes no sense. Just get rid of your mouse_pointer line and replace it with
mouse_mode = 1;(or w/e you want it to be other than 0)
mouse_map = mouse_map_here;

That will do it unless i understood the question wrong.


"You may never know what results come of your action, but if you do nothing there will be no result."
-Mahatma Gandhi
Re: hide system mouse cursor on window mode [Re: GamerX] #249182
01/31/09 19:37
01/31/09 19:37
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
my prob is, if the player moves the cursor out of the window... the cursor changes to the windows cursor..

In games with window mode ( World of warcraft, DUngeon keeper..etc ).. the cursor stops on the borders of the screen.. and the windows cursor is not visible.

There must be a way to say:

don´t run the functions..etc of the game, if the cursor is outside of the window, and hide the windows one..

Last edited by Espér; 01/31/09 19:38.

Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: hide system mouse cursor on window mode [Re: Espér] #249184
01/31/09 19:47
01/31/09 19:47
Joined: Aug 2008
Posts: 218
U.S.
GamerX Offline
Member
GamerX  Offline
Member

Joined: Aug 2008
Posts: 218
U.S.
I think your saying you want it to disappear off the screen when the mouse is not on the window. Then you can just add mouse_pointer = 0 or 1 or w/e above mouse_mode. I have it in my project that's how i do it.


"You may never know what results come of your action, but if you do nothing there will be no result."
-Mahatma Gandhi
Re: hide system mouse cursor on window mode [Re: GamerX] #250157
02/06/09 10:31
02/06/09 10:31
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
I have the same problem: if i start my Game in the window mode (mouse_mode = 2),
it starts perfectly, the Mouse is in the middle of my screen. With the mouse i move my camera.pan / tilt. But now if i move my camera with the mouse, the Windows Systemmouse comes on the border of my Game Window, and if i click the mousebutton now, the Aplication changes to that Aplication that is under the Windows Systemmouse. But the Mouse of my Game is still on the middle of my Game. How can i disconnect the Systemmouse?

Re: hide system mouse cursor on window mode [Re: Widi] #250381
02/07/09 16:49
02/07/09 16:49
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
Nobody can help?

Last edited by Widi; 02/07/09 16:49.
Re: hide system mouse cursor on window mode [Re: Widi] #250404
02/07/09 19:51
02/07/09 19:51
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
just fit your mouse pointer to the system cursor


inside a while loop and remove your old cursor movement
vec_set(mouse_pos,mouse_cursor);


"empty"
Re: hide system mouse cursor on window mode [Re: flits] #250434
02/07/09 22:40
02/07/09 22:40
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
No, i need the other way:
vec_set(mouse_cursor,mouse_pos);
But mouse_cursor is a read only variable.
My Mouse should be always in the middle of the Window. That works, but if i move my Mouse with mouse_mode = 2 then comes the Systemmouse from Windows on the border from the Game - Window. I want to control the Systemmouse...


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