Horizon
Loading...
Searching...
No Matches
src
canvas
input_devices_prefs.hpp
1
#pragma once
2
#include <map>
3
#include <string>
4
5
namespace
horizon {
6
class
InputDevicesPrefs
{
7
public
:
8
class
Device
{
9
public
:
10
enum class
Type { AUTO, TOUCHPAD, TRACKPOINT, MOUSE };
11
12
Type type = Type::AUTO;
13
};
14
std::map<std::string, Device> devices;
15
16
class
DeviceType
{
17
public
:
18
bool
invert_zoom =
false
;
19
bool
invert_pan =
false
;
20
};
21
std::map<Device::Type, DeviceType> device_types;
22
};
23
}
// namespace horizon
horizon::InputDevicesPrefs::DeviceType
Definition
input_devices_prefs.hpp:16
horizon::InputDevicesPrefs::Device
Definition
input_devices_prefs.hpp:8
horizon::InputDevicesPrefs
Definition
input_devices_prefs.hpp:6
Generated by
1.9.8