Table of Contents

Class TouchCollectorConfiguration

Namespace
nanoFramework.UI
Assembly
nanoFramework.Graphics.dll

Provides configuration settings for the TouchCollector.

public static class TouchCollectorConfiguration
Inheritance
TouchCollectorConfiguration
Inherited Members

Properties

CollectionMethod

Gets or sets the collection method for the TouchCollector.

public static CollectionMethod CollectionMethod { get; set; }

Property Value

CollectionMethod

CollectionMode

Gets or sets the collection mode for the TouchCollector.

public static CollectionMode CollectionMode { get; set; }

Property Value

CollectionMode

SamplingFrequency

Gets or sets the sampling frequency per second.

public static int SamplingFrequency { get; set; }

Property Value

int

Remarks

Setting a frequency of 50 will result in 50 touch samples per second.

TouchMoveFrequency

Gets or sets the touch move frequency.

public static int TouchMoveFrequency { get; set; }

Property Value

int

Remarks

The touch move frequency determines how often touch move events are generated.

Methods

GetLastTouchPoint(ref int, ref int)

Gets the last touch point.

public static void GetLastTouchPoint(ref int x, ref int y)

Parameters

x int

The x-coordinate of the last touch point.

y int

The y-coordinate of the last touch point.

GetTouchInput(TouchInput, ref int, ref int, ref int)

Retrieves touch input data for a specified flag.

public static void GetTouchInput(TouchCollectorConfiguration.TouchInput flag, ref int param1, ref int param2, ref int param3)

Parameters

flag TouchCollectorConfiguration.TouchInput

The flag indicating the type of touch input data to retrieve.

param1 int

The first parameter of the touch input data.

param2 int

The second parameter of the touch input data.

param3 int

The third parameter of the touch input data.

SetTouchInput(TouchInput, int, int, int)

Sets touch input data for a specified flag.

public static void SetTouchInput(TouchCollectorConfiguration.TouchInput flag, int param1, int param2, int param3)

Parameters

flag TouchCollectorConfiguration.TouchInput

The flag indicating the type of touch input data to set.

param1 int

The first parameter of the touch input data.

param2 int

The second parameter of the touch input data.

param3 int

The third parameter of the touch input data.