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 sensitivity

Author
Message
nruser
17
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Serbia
Posted: 21st Jul 2008 01:04
Is there any way to make game able to configure mouse sensitivy in DBC?

P3 CPU 500 Mhz, 128 MB RAM, 16 MB VRAM, WinXP.
Almost the best configuration for game development.
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 21st Jul 2008 01:26
you could always just divide MouseMoveX() and MouseMoveY() by a sensitivity value.

Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 21st Jul 2008 07:40
sens# = 1.0

moveX# = mousemovex() * sens#

bigger value = faster
lower value = slower


Ed222
17
Years of Service
User Offline
Joined: 3rd Nov 2007
Location: Calgary
Posted: 21st Jul 2008 07:54 Edited at: 21st Jul 2008 08:01
Quote: "sens# = 1.0

moveX# = mousemovex() * sens#"

couldn't you just use 1 instead of a variablee for that?

[edit]

this would be faster



I don't think that the mouse uses floats

BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 21st Jul 2008 08:17
Quote: "couldn't you just use 1 instead of a variablee for that?"


Yeah, but the idea was that sens# could be any number, thus scaling the sensitivity. It was just 1 in this example, but it doesn't have to be.

Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?
Ed222
17
Years of Service
User Offline
Joined: 3rd Nov 2007
Location: Calgary
Posted: 21st Jul 2008 18:06
Unless you don't need to change it

master programmer
20
Years of Service
User Offline
Joined: 30th May 2005
Location: 3D Space
Posted: 22nd Jul 2008 09:47
Agreed, but the whole question was how to change the sensitivity.

Login to post a reply

Server time is: 2025-06-07 06:45:47
Your offset time is: 2025-06-07 06:45:47