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
1 registered members (Dico), 16,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
mouse_force problem! #316654
03/25/10 20:00
03/25/10 20:00
Joined: Feb 2009
Posts: 46
Spain
B
Beker Offline OP
Newbie
Beker  Offline OP
Newbie
B

Joined: Feb 2009
Posts: 46
Spain
I am having problems with the command "mouse_force" which constantly gives an intermitent value of 0 although the mouse is moving and I need to resolve this for my network code.

example problem:
*****************************************************************************
var dat;
PANEL* inf=
{ digits(10, 10,"Dat: %f","Arial#25b",1, dat); flags = VISIBLE; }

function main()
{
video_switch(6,32,2);
//mouse_calm = 0; mouse_time = 16; mouse_moving
while(1)
{
if (mouse_force.x>0){dat=1;}
if (mouse_force.x<0){dat=2;}
if (mouse_force.x==0){dat=0;}
wait(1);
}
}

Re: mouse_force problem! [Re: Beker] #316692
03/25/10 21:49
03/25/10 21:49
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
did you set mouse_mode?


"empty"
Re: mouse_force problem! [Re: flits] #316783
03/26/10 15:24
03/26/10 15:24
Joined: Feb 2009
Posts: 46
Spain
B
Beker Offline OP
Newbie
Beker  Offline OP
Newbie
B

Joined: Feb 2009
Posts: 46
Spain
No matter the cursor, not just need a value of 0 if the cursor is moving. "Mousemoving" not worth me, has much delay.

Re: mouse_force problem! [Re: Beker] #316784
03/26/10 15:49
03/26/10 15:49
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
just use mouse_moving which is 0 when the mouse is not moving - much better as you did wink

Re: mouse_force problem! [Re: Rei_Ayanami] #316785
03/26/10 16:18
03/26/10 16:18
Joined: Aug 2008
Posts: 482
B
bart_the_13th Offline
Senior Member
bart_the_13th  Offline
Senior Member
B

Joined: Aug 2008
Posts: 482
Try using mickey instead of mouse?

Re: mouse_force problem! [Re: bart_the_13th] #316795
03/26/10 17:26
03/26/10 17:26
Joined: Feb 2009
Posts: 46
Spain
B
Beker Offline OP
Newbie
Beker  Offline OP
Newbie
B

Joined: Feb 2009
Posts: 46
Spain
Originally Posted By: Rei_Ayanami
just use mouse_moving which is 0 when the mouse is not moving - much better as you did wink

No, mouse_moving have 1/4 sec retardering,in an online game, is unacceptable.

Originally Posted By: bart_the_13th
Try using mickey instead of mouse?

I do not understand, my English is very bad, sorry.

I need a solution please!!!!

Re: mouse_force problem! [Re: Beker] #316796
03/26/10 17:30
03/26/10 17:30
Joined: Feb 2009
Posts: 46
Spain
B
Beker Offline OP
Newbie
Beker  Offline OP
Newbie
B

Joined: Feb 2009
Posts: 46
Spain
ohhh mickey command jeje. makes tests to see if it works.


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