SpiecsEngine
 
Loading...
Searching...
No Matches

◆ OnEvent()

void Spices::MeshController::OnEvent ( Event & e)
overridevirtual

This interface defines the behaves on specific component event happened.

Parameters
[in]eEvent.

Reimplemented from Spices::NativeScriptComponent.

Definition at line 31 of file MeshController.cpp.

32 {
33 EventDispatcher dispatcher(e);
34
35 dispatcher.Dispatch<KeyPressedEvent>(BIND_EVENT_FN(MeshController::OnKeyPressed));
36 }
#define BIND_EVENT_FN(x)
Bind Event.
Definition Event.h:88
bool OnKeyPressed(KeyPressedEvent &e)

References Spices::EventDispatcher::EventDispatcher(), and OnKeyPressed().