Unravel Engine C++ Reference
Loading...
Searching...
No Matches
device.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "device_type.hpp"
4#include <string>
5
6namespace input
7{
9{
10 device_type type_;
11 bool is_input_allowed_{true};
12
13
14public:
16 {
17 }
18
19 virtual ~input_device()
20 {
21 }
22
24 {
25 return type_;
26 }
27
28 virtual auto get_name() const -> const std::string& = 0;
29
30 void set_is_input_allowed(bool allowed)
31 {
32 is_input_allowed_= allowed;
33 }
34 auto is_input_allowed() const -> bool
35 {
36 return is_input_allowed_;
37 }
38};
39} // namespace input
manifold_type type
virtual auto get_name() const -> const std::string &=0
auto is_input_allowed() const -> bool
Definition device.hpp:34
auto get_device_type() const -> device_type
Definition device.hpp:23
input_device(const device_type type)
Definition device.hpp:15
virtual ~input_device()
Definition device.hpp:19
void set_is_input_allowed(bool allowed)
Definition device.hpp:30