summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Howard2014-05-01 01:55:21 -0400
committerSimon Howard2014-05-01 01:55:21 -0400
commit10b94b8e2dfc86ccf3363a8a87e4a57a7fb24655 (patch)
treedbd9cd1c12a80e6903e1a7418ca4cd5649ee3bab /src
parentca2a6aee59f8bf0960cca15e8f8d681f92bb1f11 (diff)
downloadchocolate-doom-10b94b8e2dfc86ccf3363a8a87e4a57a7fb24655.tar.gz
chocolate-doom-10b94b8e2dfc86ccf3363a8a87e4a57a7fb24655.tar.bz2
chocolate-doom-10b94b8e2dfc86ccf3363a8a87e4a57a7fb24655.zip
setup: Enable joystick after calibration.
If the user has just successfully calibrated the joystick, then turn on use_joystick as a convenience feature.
Diffstat (limited to 'src')
-rw-r--r--src/setup/joystick.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/setup/joystick.c b/src/setup/joystick.c
index d2fecd45..792c1712 100644
--- a/src/setup/joystick.c
+++ b/src/setup/joystick.c
@@ -505,6 +505,7 @@ static int CalibrationEventCallback(SDL_Event *event, void *user_data)
// Finished?
if (calibrate_stage == CALIBRATE_CENTER)
{
+ use_joystick = 1;
TXT_CloseWindow(calibration_window);
}