The following tables list the members exposed by TouchEmulationParameters.
Public Constructors
Public Fields
| | Name | Description |
 | Acceleration |
Acceleration for the speed of swipe. Acceptable range: [1, 2].
|
 | MaxCurvature |
Maximum curvature of swipes. Acceptable range: [0, 1]. Must be greater than or equal to MinCurvature.
Actual curvature of each swipe will be a random number between MinCurvature and MaxCurvature
|
 | MaxCurvePeakShift |
Second boundary for curve peak of swipe. Acceptable range: [0, 1]. Must be greater than or equal to MinCurvePeakShift.
Actual peak shift for each swipe will be a random number between MinCurvePeakShift and MaxCurvePeakShift
Actual peak shift works as follows:
0 means that peak will be near starting point;
1 means that peak will be near ending point;
0.5f means that peak will be directly in the middle of starting and ending points;
|
 | MaxStep |
Minimum distance for steps while following Bezier curve. Acceptable range: [1, 60]. Must be greater than or equal to MinStep.
Distance of steps is directly proportional to the speed of swipes.
Actual distance for steps of each swipe will start at MinStep. It will get multiplied by Acceleration each step, but will not exceed MaxStep
|
 | MinCurvature |
Minimum curvature of swipes. Acceptable range: [0, 1]. Must be less than or equal to MaxCurvature.
Actual curvature of each swipe will be a random number between MinCurvature and MaxCurvature
|
 | MinCurvePeakShift |
First boundary for curve peak of swipe. Acceptable range: [0, 1]. Must be less than or equal to MaxCurvePeakShift.
Actual peak shift for each swipe will be a random number between MinCurvePeakShift and MaxCurvePeakShift
Actual peak shift works as follows:
0 means that peak will be near starting point;
1 means that peak will be near ending point;
0.5f means that peak will be directly in the middle of starting and ending points;
|
 | MinStep |
Minimum distance for steps while following Bezier curve. Acceptable range: [1, 60]. Must be less than or equal to MaxStep.
Distance of steps is directly proportional to the speed of swipes.
Actual distance for steps of each swipe will start at MinStep. It will get multiplied by Acceleration each step, but will not exceed MaxStep
|
 | PauseBetweenStepsMs |
Pause between steps while following Bezier curve in milliseconds. Acceptable range: [1, 200].
Should correspond to the refresh rate of a touch-screen of an emulated device.
Value is inversely proportional to the speed of swipes.
|
 | PauseBetweenSwipesMs |
Pause at the end of each swipe in milliseconds. Acceptable range: [200, 2000].
|
 | RectangleBasePointPartH |
Fraction of HtmlElement's height that is used when generating touch-event. Acceptable range: [0, 1]
|
 | RectangleBasePointPartW |
Fraction of HtmlElement's width that is used when generating touch-event. Acceptable range: [0, 1]
|
 | RightThumbProbability |
Probability that the curve will look like it was created by right thumb (and not the left one). Acceptable range: [0, 1]
|
 | SwipeDeviationX |
Fraction of a screen width that is used for randomizing starting and final positions for swipe-scrolls. Acceptable range: [0, 0.2]
|
 | SwipeDeviationY |
Fraction of a screen height that is used for randomizing starting and final positions for swipe-scrolls. Acceptable range: [0, 0.2]
|
 | SwipeFractionX |
Fraction of a screen width that is used for swipe-scrolls. Acceptable range: [0.2, 0.8].
|
 | SwipeFractionY |
Fraction of a screen height that is used for swipe-scrolls. Acceptable range: [0.2, 0.8].
|
Top
See Also