isFromSource

open fun isFromSource(@NonNull event: @NonNull MotionEvent, source: Int): Boolean

Determines whether the event is from the given source.

Return

Whether the event is from the given source.

Parameters

event

motion event for which to check the source.

source

The input source to check against.