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
15namespace TBUI
16{
18{
20public:
24 virtual ~TBUIInputHandler();
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 TBUI
The input events of the Input subsystems.
Definition inputevent.h:24
Input handlers receive and process input events.
Definition inputhandler.h:29
void OnBeginFrame() override
reset key inputs
Definition tbuiinputhandler.cc:54
virtual void BeginCapture()
capture input to this event handler
Definition tbuiinputhandler.cc:34
virtual bool OnEvent(const Input::InputEvent &inputEvent)
called when an input event should be processed
Definition tbuiinputhandler.cc:62
TBUIInputHandler()
constructor
Definition tbuiinputhandler.cc:17
virtual void EndCapture()
end input capturing to this event handler
Definition tbuiinputhandler.cc:44
virtual ~TBUIInputHandler()
destructor
Definition tbuiinputhandler.cc:25
Util::Array< Input::InputEvent > inputEvents
Definition tbuiinputhandler.h:40
__DeclareClass(TBUIInputHandler)
Nebula's dynamic array class.
Definition array.h:60
Turbobadger UI Batch.
Definition tbuibatch.h:18