summaryrefslogtreecommitdiffhomepage
path: root/proto-mouse/mouse-settings.hpp
blob: c29024aca7c36824473dcee4a837d259977f35e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include "options/options.hpp"

namespace mouse_impl {

using namespace options;

struct mouse_settings : opts {
    value<int> Mouse_X, Mouse_Y;
    value<slider_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", slider_value(200, 25, 500)),
        sensitivity_y(b, "mouse-sensitivity-y", slider_value(200, 25, 500))
    {}
};

} // ns mouse_impl

using mouse_impl::mouse_settings;