diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-06-14 11:47:30 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-06-14 18:14:46 +0200 |
commit | 1d8b1da9a68a47e6b222e8d80dc8e546e52e4dcc (patch) | |
tree | 2bbcf25de732bd8a81363f452e08520087b024b5 /proto-mouse/ftnoir_protocol_mouse_dialog.cpp | |
parent | a8da0d997048007d3feb2e3814ba93bbfd4d4ef8 (diff) |
proto/mouse: guard against +181 -> -179 wraparound
Always use the shorter way around.
This also adds a sensitivity param.
Issue: #370
Diffstat (limited to 'proto-mouse/ftnoir_protocol_mouse_dialog.cpp')
-rw-r--r-- | proto-mouse/ftnoir_protocol_mouse_dialog.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/proto-mouse/ftnoir_protocol_mouse_dialog.cpp b/proto-mouse/ftnoir_protocol_mouse_dialog.cpp index 89851b61..d8517487 100644 --- a/proto-mouse/ftnoir_protocol_mouse_dialog.cpp +++ b/proto-mouse/ftnoir_protocol_mouse_dialog.cpp @@ -10,6 +10,9 @@ MOUSEControls::MOUSEControls() tie_setting(s.Mouse_X, ui.cbxSelectMouse_X); tie_setting(s.Mouse_Y, ui.cbxSelectMouse_Y); + + tie_setting(s.sensitivity_x, ui.sensitivity_x); + tie_setting(s.sensitivity_y, ui.sensitivity_y); } void MOUSEControls::doOK() { |