Mir
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
include
platform
mir
input
pointer_settings.h
Go to the documentation of this file.
1
/*
2
* Copyright © 2015 Canonical Ltd.
3
*
4
* This program is free software: you can redistribute it and/or modify it
5
* under the terms of the GNU Lesser General Public License version 3,
6
* as published by the Free Software Foundation.
7
*
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 Lesser General Public License for more details.
12
*
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15
*
16
* Authored by:
17
* Andreas Pokorny <andreas.pokorny@canonical.com>
18
*/
19
20
#ifndef MIR_INPUT_POINTER_SETTINGS_H_
21
#define MIR_INPUT_POINTER_SETTINGS_H_
22
23
#include "
mir_toolkit/client_types.h
"
24
#include "
mir_toolkit/mir_input_device.h
"
25
26
namespace
mir
27
{
28
namespace
input
29
{
30
31
struct
PointerSettings
32
{
33
PointerSettings
() {}
37
MirPointerHandedness
handedness
{
mir_pointer_handedness_right
};
44
double
cursor_acceleration_bias
{0.0};
48
MirPointerAcceleration
acceleration
{
mir_pointer_acceleration_adaptive
};
52
double
horizontal_scroll_scale
{1.0};
56
double
vertical_scroll_scale
{1.0};
57
};
58
59
}
60
}
61
62
#endif
mir
Definition:
as_render_target.h:27
mir::input::PointerSettings::cursor_acceleration_bias
double cursor_acceleration_bias
Bias cursor acceleration.
Definition:
pointer_settings.h:44
mir::input::PointerSettings::vertical_scroll_scale
double vertical_scroll_scale
Scale vertical scrolling linearly.
Definition:
pointer_settings.h:56
mir::input::PointerSettings::acceleration
MirPointerAcceleration acceleration
Acceleration profile.
Definition:
pointer_settings.h:48
mir::input::PointerSettings::PointerSettings
PointerSettings()
Definition:
pointer_settings.h:33
mir_input_device.h
mir::input::PointerSettings::horizontal_scroll_scale
double horizontal_scroll_scale
Scale horizontal scrolling linearly.
Definition:
pointer_settings.h:52
mir_pointer_handedness_right
Definition:
mir_input_device_types.h:35
mir_pointer_acceleration_adaptive
Definition:
mir_input_device_types.h:51
MirPointerHandedness
MirPointerHandedness
Definition:
mir_input_device_types.h:33
MirPointerAcceleration
MirPointerAcceleration
MirPointerAcceleration describes the way pointer movement is filtered:
Definition:
mir_input_device_types.h:48
client_types.h
mir::input::PointerSettings::handedness
MirPointerHandedness handedness
Configure left and right handed mode by selecting a primary button.
Definition:
pointer_settings.h:37
mir::input::PointerSettings
Definition:
pointer_settings.h:31
Copyright © 2012-2016 Canonical Ltd.
Generated on Fri Dec 20 06:52:43 UTC 2019