2
* Copyright © 2015 Canonical Ltd.
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 3 as
6
* published by the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18
#ifndef USC_MIR_INPUT_CONFIGRATION_H_
19
#define USC_MIR_INPUT_CONFIGRATION_H_
21
#include "input_configuration.h"
26
struct MirInputConfiguration : InputConfiguration
29
void set_mouse_primary_button(int32_t button) override;
30
void set_mouse_cursor_speed(double speed) override;
31
void set_mouse_scroll_speed(double speed) override;
32
void set_touchpad_primary_button(int32_t button) override;
33
void set_touchpad_cursor_speed(double speed) override;
34
void set_touchpad_scroll_speed(double speed) override;
35
void set_two_finger_scroll(bool enable) override;
36
void set_tap_to_click(bool enable) override;
37
void set_disable_touchpad_while_typing(bool enable) override;
38
void set_disable_touchpad_with_mouse(bool enable) override;
40
int32_t mouse_primary_button{0};
41
double mouse_cursor_speed{0.5};
42
double mouse_scroll_speed{0.5};
43
int32_t touchpad_primary_button{0};
44
double touchpad_cursor_speed{0.5};
45
double touchpad_scroll_speed{0.5};
46
bool two_finger_scroll{false};
47
bool tap_to_click{false};
48
bool disable_while_typing{false};
49
bool disable_with_mouse{true};