Version: 2022.2

Input.GetLastPenContactEvent

切换到手册
public static PenData GetLastPenContactEvent ();

返回

PenData Pen event details in the struct.

描述

Returns the PenData for the last stored pen up or down event.

PenData.type will be set to PenEventType.Ignore if the event has already been processed by UIToolKit. GetPenEvent should be used to retrieve previous pen events.