Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Mouse Sensitifity?

Author
Message
The Dark Padawan
21
Years of Service
User Offline
Joined: 5th Aug 2003
Location: USA!
Posted: 23rd Dec 2003 18:16
Hi me for the first time in a while

I can make a screensaver but how can I make it so if you wiggle the mouse it exits out?

"Nintendo GameCube is the best"
I used to be the Dark Padawan
Emperor Baal
21
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 23rd Dec 2003 18:25
if you mean in DBC

if mousemovex() > 1 or mousemovey() > 1 then end


Quote: "
Amd 2500+ | 1024mb pc2700 | A7N8X-X | Geforce4 ti 4200 128mb
"
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 23rd Dec 2003 22:12 Edited at: 23rd Dec 2003 22:13
...or < 0

Ususally best to increase these numbers slightly, to prevent minor glitches of the mouse ending your s/s

BatVink (formerly StevieVee)
http://facepaint.me.uk/catalog/default.php
kenmo
22
Years of Service
User Offline
Joined: 7th Sep 2002
Location:
Posted: 24th Dec 2003 04:32 Edited at: 27th Jun 2012 06:16
Or... ahem... if abs(mousemovex())>0 or abs(mousemovey())>0
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 24th Dec 2003 05:52
Or the easiest ( smartest, lol ) way to do it would be:

If MouseMoveX() <> 0 or MouseMoveY() <> 0 Then End

Hope I Helped...


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 24th Dec 2003 07:26
mouse is good.

-RUST-

VB.NET makes me all goose-pimply! [href]www.mod2software.com[/href]
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 24th Dec 2003 07:28
yes mouse

-RUST-

VB.NET makes me all goose-pimply! http://www.mod2software.com
Hell IVIonkey
22
Years of Service
User Offline
Joined: 1st Apr 2003
Location: Outer Limits
Posted: 24th Dec 2003 09:16
or:
if mousemovex() or mousemovey() then end

Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 24th Dec 2003 09:54
Wouldn't that only return true if it were to equal 1? which could very likely be missed when moving the mouse, especially if it's moved in a "negative" direction...

But anyway... You have your answer The Digital boy ( Whichever you chose to use, lol )

Hope I Helped...


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
Hell IVIonkey
22
Years of Service
User Offline
Joined: 1st Apr 2003
Location: Outer Limits
Posted: 24th Dec 2003 09:59
Quote: "Wouldn't that only return true if it were to equal 1?"


Nope, any non-zero value is considered true.

Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 24th Dec 2003 10:30
Ah, ok, fair enough... That's a handy fact to know...


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
The Dark Padawan
21
Years of Service
User Offline
Joined: 5th Aug 2003
Location: USA!
Posted: 24th Dec 2003 16:29
wow thanks guys that really works

"Nintendo GameCube is the best"
I used to be the Dark Padawan

Login to post a reply

Server time is: 2025-05-22 04:29:27
Your offset time is: 2025-05-22 04:29:27