summaryrefslogtreecommitdiff
path: root/setup/txt_joybinput.c
diff options
context:
space:
mode:
authorSimon Howard2007-06-20 00:37:40 +0000
committerSimon Howard2007-06-20 00:37:40 +0000
commit856eebe52624ba5d780436feb349ea5ff2ee46b4 (patch)
treeaea6417f30dc26af06650457e1032bbaccdf5d94 /setup/txt_joybinput.c
parentd004976261747a47389b14eaf0d695a14fa0f497 (diff)
downloadchocolate-doom-856eebe52624ba5d780436feb349ea5ff2ee46b4.tar.gz
chocolate-doom-856eebe52624ba5d780436feb349ea5ff2ee46b4.tar.bz2
chocolate-doom-856eebe52624ba5d780436feb349ea5ff2ee46b4.zip
Add new configuration options for the mouse and joystick for controls
that are available through the keyboard. Justification: this is already possible through advanced mouse drivers and programs like js2x, so there might as well be a proper interface for it. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 918
Diffstat (limited to 'setup/txt_joybinput.c')
-rw-r--r--setup/txt_joybinput.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/setup/txt_joybinput.c b/setup/txt_joybinput.c
index 0f05eaf4..7a94a996 100644
--- a/setup/txt_joybinput.c
+++ b/setup/txt_joybinput.c
@@ -143,9 +143,9 @@ static void TXT_JoystickInputDrawer(TXT_UNCAST_ARG(joystick_input), int selected
char buf[20];
int i;
- if (*joystick_input->variable == -1)
+ if (*joystick_input->variable < 0)
{
- strcpy(buf, "");
+ strcpy(buf, "(none)");
}
else
{