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
CollectionMode
Gets or sets the collection mode for the TouchCollector.
public static CollectionMode CollectionMode { get; set; }
Property Value
SamplingFrequency
Gets or sets the sampling frequency per second.
public static int SamplingFrequency { get; set; }
Property Value
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
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
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.TouchInputThe flag indicating the type of touch input data to retrieve.
param1
intThe first parameter of the touch input data.
param2
intThe second parameter of the touch input data.
param3
intThe 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.TouchInputThe flag indicating the type of touch input data to set.
param1
intThe first parameter of the touch input data.
param2
intThe second parameter of the touch input data.
param3
intThe third parameter of the touch input data.