Nebula
Loading...
Searching...
No Matches
tbuiinputhandler.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
TBUI
16
{
17
class
TBUIInputHandler
:
public
Input::InputHandler
18
{
19
__DeclareClass
(
TBUIInputHandler
);
20
public
:
22
TBUIInputHandler
();
24
virtual
~TBUIInputHandler
();
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 TBUI
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
TBUI::TBUIInputHandler::OnBeginFrame
void OnBeginFrame() override
reset key inputs
Definition
tbuiinputhandler.cc:54
TBUI::TBUIInputHandler::BeginCapture
virtual void BeginCapture()
capture input to this event handler
Definition
tbuiinputhandler.cc:34
TBUI::TBUIInputHandler::OnEvent
virtual bool OnEvent(const Input::InputEvent &inputEvent)
called when an input event should be processed
Definition
tbuiinputhandler.cc:62
TBUI::TBUIInputHandler::TBUIInputHandler
TBUIInputHandler()
constructor
Definition
tbuiinputhandler.cc:17
TBUI::TBUIInputHandler::EndCapture
virtual void EndCapture()
end input capturing to this event handler
Definition
tbuiinputhandler.cc:44
TBUI::TBUIInputHandler::~TBUIInputHandler
virtual ~TBUIInputHandler()
destructor
Definition
tbuiinputhandler.cc:25
TBUI::TBUIInputHandler::inputEvents
Util::Array< Input::InputEvent > inputEvents
Definition
tbuiinputhandler.h:40
TBUI::TBUIInputHandler::__DeclareClass
__DeclareClass(TBUIInputHandler)
Util::Array
Nebula's dynamic array class.
Definition
array.h:60
inputhandler.h
TBUI
Turbobadger UI Batch.
Definition
tbuibatch.h:18
refcounted.h
code
addons
tbui
tbuiinputhandler.h
Generated on Tue Jan 28 2025 22:42:57 for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.