From bdbab6bbfef596011302b595cab9b09aec147c55 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 16 Jan 2019 06:21:48 +0100 Subject: proto/mouse: add legacy input method --- proto-mouse/mouse-settings.hpp | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'proto-mouse/mouse-settings.hpp') diff --git a/proto-mouse/mouse-settings.hpp b/proto-mouse/mouse-settings.hpp index c485e534..fda06166 100644 --- a/proto-mouse/mouse-settings.hpp +++ b/proto-mouse/mouse-settings.hpp @@ -2,20 +2,22 @@ #include "options/options.hpp" +enum input_method { + input_direct = 0, input_legacy = 1, +}; + namespace mouse_impl { using namespace options; -struct mouse_settings : opts { - value Mouse_X, Mouse_Y; - value sensitivity_x, sensitivity_y; - mouse_settings() : - opts("mouse-proto"), - Mouse_X(b, "mouse-x", 0), - Mouse_Y(b, "mouse-y", 0), - sensitivity_x(b, "mouse-sensitivity-x", { 200, 25, 500 }), - sensitivity_y(b, "mouse-sensitivity-y", { 200, 25, 500 }) - {} +struct mouse_settings : opts +{ + value mouse_x { b, "mouse-x", 0 }, mouse_y { b, "mouse-y", 0 }; + value sensitivity_x { b, "mouse-sensitivity-x", { 200, 25, 500 } }; + value sensitivity_y { b, "mouse-sensitivity-y", { 200, 25, 500 } }; + value input_method { b, "input-method", input_direct }; + + mouse_settings() : opts("mouse-proto") {} }; } // ns mouse_impl -- cgit v1.2.3