1 registered members (TipmyPip),
18,449
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
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
Expert
|
Expert
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
|
perhaps this API Call helps:
// 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.
|
|
|
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
Member
|
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
Expert
|
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.
|
|
|
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
Member
|
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: Widi]
#250381
02/07/09 16:49
02/07/09 16:49
|
Joined: Aug 2007
Posts: 1,922 Schweiz
Widi
Serious User
|
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
flits
User
|
User
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"
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|