Toast Engine
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
16namespace event {
17struct LastInputType;
18}
19
20namespace input {
21
22class [[ToastNode, Hidden]] TOAST_API IController : public toast::Node {
23public:
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
34protected:
35 void init();
36
37 std::string m_last_input_type;
38 std::string m_last_input_name;
39};
40
41}
Definition icontroller.hpp:22
Definition node.hpp:81
Base object type for the scene graph.
Sent when the most recently used input device changes.
Definition input_events.hpp:42