SpiecsEngine
 
Loading...
Searching...
No Matches

◆ OnEvent()

void Spices::ImguiGizmos::OnEvent ( Event & event)
overridevirtual

This interface is called On Global Event Function Pointer is called.

Instance a EventDispatcher.

Dispatch KeyPressedEvent to ImguiGizmos::OnKeyPressed.

Instance a EventDispatcher.

Dispatch KeyPressedEvent to ImguiGizmos::OnKeyPressed.

Implements Spices::ImguiSlate.

Definition at line 196 of file ImguiGizmos.cpp.

197 {
199
203 EventDispatcher dispatcher(event);
204
208 dispatcher.Dispatch<KeyPressedEvent>(BIND_EVENT_FN(ImguiGizmos::OnKeyPressed));
209 }
#define BIND_EVENT_FN(x)
Bind Event.
Definition Event.h:88
#define SPICES_PROFILE_ZONE
bool OnKeyPressed(KeyPressedEvent &e)
Event Dispatcher target. Registry on Key Resized.

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