summaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
authorSimon Howard2006-10-07 00:59:03 +0000
committerSimon Howard2006-10-07 00:59:03 +0000
commitbe3d314a61d68281f02af1248a85e6aa069c4980 (patch)
tree77a1e90a6a44aeb6d8c564f301507f39cf6b46c0 /setup
parentceefbc0827e321edb67aeed63a25beb458ffaeca (diff)
downloadchocolate-doom-be3d314a61d68281f02af1248a85e6aa069c4980.tar.gz
chocolate-doom-be3d314a61d68281f02af1248a85e6aa069c4980.tar.bz2
chocolate-doom-be3d314a61d68281f02af1248a85e6aa069c4980.zip
Add float spin control and use it for the acceleration controller in setup.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 692
Diffstat (limited to 'setup')
-rw-r--r--setup/mouse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/setup/mouse.c b/setup/mouse.c
index 67e12b23..bd3aa8a5 100644
--- a/setup/mouse.c
+++ b/setup/mouse.c
@@ -30,7 +30,7 @@ int use_mouse = 1;
int novert;
int speed;
-int accel;
+float accel;
int threshold;
int grabmouse = 1;
@@ -100,7 +100,7 @@ void ConfigMouse(void)
TXT_NewLabel("Speed"),
TXT_NewSpinControl(&speed, 1, 256),
TXT_NewLabel("Acceleration"),
- TXT_NewSpinControl(&accel, 1, 5),
+ TXT_NewFloatSpinControl(&accel, 1.0, 5.0),
TXT_NewLabel("Acceleration threshold"),
TXT_NewSpinControl(&threshold, 0, 32),
NULL);