|
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: AknPhysics constant definitions |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef AKNPHYSICSCONSTANTS_H |
|
20 #define AKNPHYSICSCONSTANTS_H |
|
21 |
|
22 // Physics Constants |
|
23 const TInt KDefaultFriction( 10 ); |
|
24 const TInt KFps( 50 ); // desired framerate |
|
25 const TInt KPhysicsTime( 1000000/KFps ); // timer value |
|
26 const TInt KPhysicsMinTime( 17000 ); // ~1000000/(2*KFps); |
|
27 const TInt KAknHighResMinWait( 500 ); // minimum wait time between callbacks |
|
28 const TInt KAknHighResMaxWait( 100000 ); // maximum wait time between callbacks |
|
29 const TInt KMaxContacts( 2 ); // max amount of contacts with 2 objects |
|
30 const TInt KZDepth( 1000 ); // Just something |
|
31 const TInt KSwipeDuration( 800000 ); // 800ms |
|
32 const TReal KStepFactor( .00000001 ); // used in drag calculations |
|
33 const TReal KErpFactor( 0.5 ); |
|
34 const TReal KCfmFactor( 0.001 ); |
|
35 const TReal KCfmSoftFactor( .01 ); |
|
36 const TReal KBounceFactor( .001 ); |
|
37 const TInt KFlickMaxDuration( 500000 ); |
|
38 |
|
39 #endif // AKNPHYSICSCONSTANTS_H |