Edit

Share via


SKTouchEventArgs Class

Definition

Provides data for the Touch event.

public class SKTouchEventArgs : EventArgs
Inheritance
SKTouchEventArgs

Remarks

Set Handled to true to indicate the event has been handled and prevent further processing.

Constructors

Name Description
SKTouchEventArgs(Int64, SKTouchAction, SKMouseButton, SKTouchDeviceType, SKPoint, Boolean, Int32, Single)

Initializes a new instance of the SKTouchEventArgs class with pressure support.

SKTouchEventArgs(Int64, SKTouchAction, SKMouseButton, SKTouchDeviceType, SKPoint, Boolean, Int32)

Initializes a new instance of the SKTouchEventArgs class with wheel delta.

SKTouchEventArgs(Int64, SKTouchAction, SKMouseButton, SKTouchDeviceType, SKPoint, Boolean)

Initializes a new instance of the SKTouchEventArgs class with device type information.

SKTouchEventArgs(Int64, SKTouchAction, SKPoint, Boolean)

Initializes a new instance of the SKTouchEventArgs class.

Properties

Name Description
ActionType

Gets the type of touch action that occurred.

DeviceType

Gets the type of input device that generated the event.

Handled

Gets or sets a value indicating whether the event has been handled.

Id

Gets the unique identifier for this touch point.

InContact

Gets a value indicating whether the pointer is in contact with the surface.

Location

Gets the location of the touch point in pixels relative to the view.

MouseButton

Gets the mouse button involved in the event.

Pressure

Gets the pressure of the touch or pen input.

WheelDelta

Gets the mouse wheel delta value.

Methods

Name Description
ToString()

Returns a string representation of the touch event.

Applies to