IInputEventListener

IInputEventListenerabstract

Input event listeners registered to input system and receive input events when they are generated. More...

#include

Public Member Functions

virtual bool OnInputEvent (const SInputEvent &event)=0
virtual bool OnInputEventUI (const SUnicodeEvent &event)
virtual int GetPriority () const

Detailed Description

Input event listeners registered to input system and receive input events when they are generated.

Member Function Documentation

◆ GetPriority()

virtual int IInputEventListener::GetPriority ( ) const
inline
virtual

Used to sort the listeners based on priority

Returns
Priority associated with the listener (Higher the priority, the earlier it will be processed relative to other listeners, default = 0)

◆ OnInputEvent()

virtual bool IInputEventListener::OnInputEvent ( const SInputEvent & event)
pure virtual

Called every time input event is generated.

Returns
true if the broadcasting of this event should be aborted and the rest of input listeners should not receive this event.