Navigation
API > API/Plugins > API/Plugins/StylusInput > API/Plugins/StylusInput/IStylusInputInstance
Description
Adds an event handler that gets called for any processed stylus input event. Multiple event handlers can get added for a single stylus input instance. Please note that long-running calls will block any other event handlers, the processing of additional events, and potentially the game thread itself. Thus make sure to have an event handler call return as soon as possible.
| Name | AddEventHandler |
| Type | function |
| Header File | /Engine/Plugins/Editor/StylusInput/Source/StylusInput/Public/StylusInput.h |
| Include Path | #include "StylusInput.h" |
bool AddEventHandler
(
IStylusInputEventHandler * EventHandler,
EEventHandlerThread Thread
)
True if the event handler was added successfully.
Parameters
| Name | Remarks |
|---|---|
| EventHandler | The event handler that gets called for each processed stylus input event. |
| Thread | The type of thread the event handler calls are performed on. |