Navigation
API > API/Plugins > API/Plugins/StylusInput > API/Plugins/StylusInput/IStylusInputInstance
Description
Provides the stylus a.k.a. cursor or pen information for a given stylus ID. This function should only be called with stylus IDs recently provided by the stylus input instance, e.g. within a Calls to this function are thread-safe, i.e. can be made from an event handler callback running on any thread.
| Name | GetStylusInfo |
| Type | function |
| Header File | /Engine/Plugins/Editor/StylusInput/Source/StylusInput/Public/StylusInput.h |
| Include Path | #include "StylusInput.h" |
const TSharedPtr < IStylusInputStylusInfo > GetStylusInfo
(
uint32 StylusID
)
Pointer to stylus information or nullptr if the stylus ID was invalid or an error occured.
Parameters
| Name | Remarks |
|---|---|
| StylusID | The unique identifier of the stylus/cursor/pen as provided by this stylus input instance via an event handler callback. |
See Also
- FStylusPacket as part of an event handler callback.