Toast Engine
Toggle main menu visibility
Loading...
Searching...
No Matches
icontroller.hpp
Go to the documentation of this file.
1
8
9
#pragma once
10
11
#include "
node.hpp
"
12
13
#include <string>
14
#include <string_view>
15
16
namespace
event {
17
struct
LastInputType
;
18
}
19
20
namespace
input {
21
22
class
[[ToastNode, Hidden]] TOAST_API
IController
:
public
toast::Node
{
23
public
:
24
[[nodiscard]]
25
auto
lastInputType()
const
noexcept
-> std::string_view {
26
return
m_last_input_type;
27
}
28
29
[[nodiscard]]
30
auto
lastInputName()
const
noexcept
-> std::string_view {
31
return
m_last_input_name;
32
}
33
34
protected
:
35
void
init();
36
37
std::string m_last_input_type;
38
std::string m_last_input_name;
39
};
40
41
}
input::IController
Definition
icontroller.hpp:22
toast::Node
Definition
node.hpp:81
node.hpp
Base object type for the scene graph.
event::LastInputType
Sent when the most recently used input device changes.
Definition
input_events.hpp:42
engine
src
toast
world
icontroller.hpp
Generated by
1.17.0