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
6
namespace
input
7
{
8
class
input_device
9
{
10
device_type
type_;
11
bool
is_input_allowed_{
true
};
12
13
14
public
:
15
input_device
(
const
device_type
type
) : type_(
type
)
16
{
17
}
18
19
virtual
~input_device
()
20
{
21
}
22
23
auto
get_device_type
() const ->
device_type
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
type
manifold_type type
Definition
bullet_backend.cpp:87
input::input_device
Definition
device.hpp:9
input::input_device::get_name
virtual auto get_name() const -> const std::string &=0
input::input_device::is_input_allowed
auto is_input_allowed() const -> bool
Definition
device.hpp:34
input::input_device::get_device_type
auto get_device_type() const -> device_type
Definition
device.hpp:23
input::input_device::input_device
input_device(const device_type type)
Definition
device.hpp:15
input::input_device::~input_device
virtual ~input_device()
Definition
device.hpp:19
input::input_device::set_is_input_allowed
void set_is_input_allowed(bool allowed)
Definition
device.hpp:30
device_type.hpp
input
Definition
action_id.hpp:5
input::device_type
device_type
Definition
device_type.hpp:6
std
Definition
render_view_keys.h:37
UnravelEngine
UnravelEngine
engine
engine
input
action_map
device.hpp
Generated by
1.12.0