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
15namespace Dynui
16{
18{
20public:
24 virtual ~ImguiInputHandler();
25
27 virtual void BeginCapture();
29 virtual void EndCapture();
30
32 void OnBeginFrame() override;
33
34protected:
35
37 virtual bool OnEvent(const Input::InputEvent& inputEvent);
38
39private:
41};
42} // namespace Dynui
This input handler passes input events to Imgui.
Definition imguiinputhandler.h:18
ImguiInputHandler()
constructor
Definition imguiinputhandler.cc:18
virtual void EndCapture()
end input capturing to this event handler
Definition imguiinputhandler.cc:45
void OnBeginFrame() override
reset key inputs
Definition imguiinputhandler.cc:55
virtual void BeginCapture()
capture input to this event handler
Definition imguiinputhandler.cc:35
Util::Array< Input::InputEvent > inputEvents
Definition imguiinputhandler.h:40
virtual bool OnEvent(const Input::InputEvent &inputEvent)
called when an input event should be processed
Definition imguiinputhandler.cc:64
virtual ~ImguiInputHandler()
destructor
Definition imguiinputhandler.cc:26
__DeclareClass(ImguiInputHandler)
The input events of the Input subsystems.
Definition inputevent.h:24
Input handlers receive and process input events.
Definition inputhandler.h:29
Nebula's dynamic array class.
Definition array.h:60
Imgui Profiler UI.
Definition imguiconsole.cc:277