56
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description: Touch gesture framework constant definitions.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef AKNTOUCHGESTUREFWDEFS_H
|
|
19 |
#define AKNTOUCHGESTUREFWDEFS_H
|
|
20 |
|
|
21 |
#include <e32std.h>
|
|
22 |
|
|
23 |
namespace AknTouchGestureFw
|
|
24 |
{
|
|
25 |
|
|
26 |
/// UID for testing features enabling
|
|
27 |
const TUint KAknTouchGestureFwTestingFeature( 0x20026806 );
|
|
28 |
|
|
29 |
/// Default threshold value for Long Tap (in microseconds).
|
|
30 |
const TInt KDefaultLongTapThreshold = 800000;
|
|
31 |
|
|
32 |
/// Default value for Long Tap initial delay (in microseconds).
|
|
33 |
const TInt KDefaultLongTapInitialDelay = 200000;
|
|
34 |
|
|
35 |
/// Default value for maximum long tap intensity.
|
|
36 |
const TInt KDefaultMaxLongTapIntensity = 100;
|
|
37 |
|
|
38 |
/// Default value for maximum long tap intensity steps.
|
|
39 |
const TInt KDefaultMaxLongTapIntensitySteps = 6;
|
|
40 |
|
|
41 |
/// Maximum time duration between two taps to recognize
|
|
42 |
/// a double tap (in microseconds).
|
|
43 |
const TInt KDefaultMaxDoubleTapDuration = 400000;
|
|
44 |
|
|
45 |
/// Pixel threshold value used for deciding if pointer movement is a tap.
|
|
46 |
/// This value should be less than KDragThreshold.
|
|
47 |
const TInt KTapThreshold = 20;
|
|
48 |
|
|
49 |
/// Pixel threshold value used for deciding if pointer has been dragged.
|
|
50 |
const TInt KDefaultDragThreshold = 40;
|
|
51 |
|
|
52 |
/// Initial threshold for pinch. This is used when both pointers are
|
|
53 |
/// just set down.
|
|
54 |
const TInt KDefaultPinchInitialThreshold = 20;
|
|
55 |
|
|
56 |
/// Movement threshold for pinch. This is used after initial threshold
|
|
57 |
/// has been exceeded.
|
|
58 |
const TInt KDefaultPinchMovementThreshold = 10;
|
|
59 |
|
|
60 |
/// Direction change sensitivity for pinch.
|
|
61 |
const TInt KDefaultPinchDirectionChangeSensitivity = 2;
|
|
62 |
|
|
63 |
/// Direction reset sensitivity for pinch.
|
|
64 |
const TInt KDefaultPinchDirectionResetSensitivity = 3;
|
|
65 |
|
|
66 |
/// If height or width is below this value, then that dimension
|
|
67 |
/// is ignored.
|
|
68 |
const TInt KDefaultPinchDimensionThreshold = 20;
|
|
69 |
|
|
70 |
/// Maximum confirmation duration for pinch.
|
|
71 |
const TInt KDefaultPinchMaximumConfirmationDuration = 250000;
|
|
72 |
|
|
73 |
/// Flick speed threshold value (in pixels per sec).
|
|
74 |
const TInt KDefaultFlickSpeedThreshold = 100;
|
|
75 |
|
|
76 |
/// Flick detection time (in microseconds).
|
|
77 |
const TInt KDefaultFlickDetectionTime = 500000;
|
|
78 |
|
|
79 |
/// Direction change sensitivity.
|
|
80 |
const TInt KDefaultDirectionChangeSensitivity = 2;
|
|
81 |
|
|
82 |
/// Max number of points stored to array.
|
|
83 |
const TInt KMaxBufferLength = 100;
|
|
84 |
|
|
85 |
/// One second in microseconds.
|
|
86 |
const TInt KMicroSecondsInSecond = 1000000;
|
|
87 |
|
|
88 |
/// One millisecond in microseconds.
|
|
89 |
const TInt KMicroSecondsInMilliSecond = 1000;
|
|
90 |
|
|
91 |
/// Value used to indicate invalid pointer number.
|
|
92 |
const TInt KInvalidPointerNumber = -1;
|
|
93 |
|
|
94 |
/// Epsilon values that satisfy formula Abs(x) < KEpsilon are considered
|
|
95 |
/// to be zero.
|
|
96 |
const TReal KEpsilon = 0.00001f;
|
|
97 |
|
|
98 |
/// Value used to represent all gesture types in gesture group
|
|
99 |
const TUint32 KAknTouchGestureFwAllGestureTypes = 0x7fffffff;
|
|
100 |
|
|
101 |
/// Default feedback intensity.
|
|
102 |
const TInt KAknTouchGestureFwFeedbackIntensity = 100;
|
|
103 |
|
|
104 |
/// Pinch feedback timeout (in microseconds).
|
|
105 |
const TInt KAknTouchGestureFwPinchFeedbackTimeout = 200000;
|
|
106 |
|
|
107 |
/// Drag feedback timeout (in microseconds).
|
|
108 |
const TInt KAknTouchGestureFwDragFeedbackTimeout = 200000;
|
|
109 |
|
|
110 |
} // namespace AknTouchGestureFw
|
|
111 |
|
|
112 |
#endif // AKNTOUCHGESTUREFWDEFS_H
|