Navigation
API > API/Plugins > API/Plugins/StylusInput > API/Plugins/StylusInput/IStylusInputEventHandler
Description
Callback for each packet processed by the stylus input instance. This function is called on the game thread or asynchronously to the game thread depending on how the event handler was added to the stylus input instance. The implementation of this function is responsible for any thread synchronization that might be necessary.
| Name | OnPacket |
| Type | function |
| Header File | /Engine/Plugins/Editor/StylusInput/Source/StylusInput/Public/StylusInput.h |
| Include Path | #include "StylusInput.h" |
void OnPacket
(
const FStylusInputPacket & Packet,
IStylusInputInstance * Instance
)
Parameters
| Name | Remarks |
|---|---|
| Packet | The packet being processed. |
| Instance | The stylus input instance that sent the packet. |