InputDevice.isValid

public bool isValid;

Description 描述

Read Only. True if the device is currently a valid input device; otherwise false.

Use this property to determine whether this device is still valid.