From 45bd7a8b75ebd8227ec4a09e427a66b1bb2796d1 Mon Sep 17 00:00:00 2001 From: rsn8887 Date: Sun, 19 Feb 2017 20:14:51 -0600 Subject: SDL: Fix erratic analog pointer + control options Fixes erratic speeds in analog pointer motion Implemented option to set analog/keyboard pointer speed and control the analog joystick deadzone. The deadzone option appears only if the build supports analog joystick (via JOY_ANALOG define) --- gui/options.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'gui/options.h') diff --git a/gui/options.h b/gui/options.h index 6b6cb92378..2f628315e4 100644 --- a/gui/options.h +++ b/gui/options.h @@ -123,7 +123,14 @@ private: CheckboxWidget *_touchpadCheckbox; CheckboxWidget *_onscreenCheckbox; CheckboxWidget *_swapMenuAndBackBtnsCheckbox; - + + StaticTextWidget *_kbdMouseSpeedDesc; + SliderWidget *_kbdMouseSpeedSlider; + StaticTextWidget *_kbdMouseSpeedLabel; + StaticTextWidget *_joystickDeadzoneDesc; + SliderWidget *_joystickDeadzoneSlider; + StaticTextWidget *_joystickDeadzoneLabel; + // // Graphics controls // -- cgit v1.2.3