1 /*
2     SPDX-FileCopyrightText: 2017 Xuetian Weng <wengxt@gmail.com>
3     SPDX-FileCopyrightText: 2018 Roman Gilg <subdiff@gmail.com>
4 
5     SPDX-License-Identifier: GPL-2.0-or-later
6 */
7 
8 #ifndef EVDEVSETTINGS_H
9 #define EVDEVSETTINGS_H
10 
11 class X11EvdevBackend;
12 
13 enum class Handed {
14     Right = 0,
15     Left = 1,
16     NotSupported = -1,
17 };
18 
19 struct EvdevSettings {
20     void save();
21     void load(X11EvdevBackend *);
22     void apply(X11EvdevBackend *, bool force = false);
23 
24     bool handedEnabled;
25     bool handedNeedsApply;
26     Handed handed;
27     double accelRate;
28     int thresholdMove;
29     int doubleClickInterval;
30     int dragStartTime;
31     int dragStartDist;
32     bool singleClick;
33     int wheelScrollLines;
34     bool reverseScrollPolarity;
35 };
36 
37 #endif // EVDEVSETTINGS_H
38