The pointerType read-only property of the that caused a given pointer event.
pointerType
MDN Reference