Nebula
Loading...
Searching...
No Matches
imguiinputhandler.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
11
//------------------------------------------------------------------------------
12
#include "
core/refcounted.h
"
13
#include "
input/inputhandler.h
"
14
15
namespace
Dynui
16
{
17
class
ImguiInputHandler
:
public
Input::InputHandler
18
{
19
__DeclareClass
(
ImguiInputHandler
);
20
public
:
22
ImguiInputHandler
();
24
virtual
~ImguiInputHandler
();
25
27
virtual
void
BeginCapture
();
29
virtual
void
EndCapture
();
30
32
void
OnBeginFrame
()
override
;
33
34
protected
:
35
37
virtual
bool
OnEvent
(
const
Input::InputEvent
& inputEvent);
38
39
private
:
40
Util::Array<Input::InputEvent>
inputEvents
;
41
};
42
}
// namespace Dynui
Dynui::ImguiInputHandler
This input handler passes input events to Imgui.
Definition
imguiinputhandler.h:18
Dynui::ImguiInputHandler::ImguiInputHandler
ImguiInputHandler()
constructor
Definition
imguiinputhandler.cc:18
Dynui::ImguiInputHandler::EndCapture
virtual void EndCapture()
end input capturing to this event handler
Definition
imguiinputhandler.cc:45
Dynui::ImguiInputHandler::OnBeginFrame
void OnBeginFrame() override
reset key inputs
Definition
imguiinputhandler.cc:55
Dynui::ImguiInputHandler::BeginCapture
virtual void BeginCapture()
capture input to this event handler
Definition
imguiinputhandler.cc:35
Dynui::ImguiInputHandler::inputEvents
Util::Array< Input::InputEvent > inputEvents
Definition
imguiinputhandler.h:40
Dynui::ImguiInputHandler::OnEvent
virtual bool OnEvent(const Input::InputEvent &inputEvent)
called when an input event should be processed
Definition
imguiinputhandler.cc:64
Dynui::ImguiInputHandler::~ImguiInputHandler
virtual ~ImguiInputHandler()
destructor
Definition
imguiinputhandler.cc:26
Dynui::ImguiInputHandler::__DeclareClass
__DeclareClass(ImguiInputHandler)
Input::InputEvent
The input events of the Input subsystems.
Definition
inputevent.h:24
Input::InputHandler
Input handlers receive and process input events.
Definition
inputhandler.h:29
Util::Array
Nebula's dynamic array class.
Definition
array.h:60
inputhandler.h
Dynui
Imgui Profiler UI.
Definition
imguiconsole.cc:277
refcounted.h
code
addons
dynui
imguiinputhandler.h
Generated on Fri Nov 22 2024 12:50:48 for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.