1 /* |
1 /* |
2 * Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
8 * |
8 * |
9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: Logical feedback type enumeration. |
14 * Description: Logical feedback type enumeration. |
|
15 * Part of: Tactile Feedback. |
15 * |
16 * |
16 */ |
17 */ |
17 |
18 |
18 |
19 |
19 #ifndef T_TOUCHLOGICALFEEDBACK_H |
20 #ifndef TOUCHLOGICALFEEDBACK_H |
20 #define T_TOUCHLOGICALFEEDBACK_H |
21 #define TOUCHLOGICALFEEDBACK_H |
21 |
|
22 |
|
23 |
22 |
24 #include <e32std.h> |
23 #include <e32std.h> |
25 |
24 |
26 |
|
27 /** |
25 /** |
28 * Pointer event types, that can be used when registering |
26 * Pointer event types, that can be used when registering |
29 * areas to registry. Currently only stylus down event |
27 * areas to registry. |
30 * is supported (this means that there will be feedback |
|
31 * whenever stylus down event is received on registered |
|
32 * area, no matter what happens _after_ stylus down event). |
|
33 */ |
28 */ |
34 enum TTouchEventType |
29 enum TTouchEventType |
35 { |
30 { |
36 ETouchEventStylusDown |
31 ETouchEventStylusDown, |
|
32 ETouchEventStylusUp, |
|
33 ETouchEventStylusPressDown, |
|
34 ETouchEventStylusPressUp |
37 }; |
35 }; |
38 |
|
39 |
36 |
40 /** |
37 /** |
41 * Logical feedback types, that can be used when producing direct |
38 * Logical feedback types, that can be used when producing direct |
42 * feedback, or when registering areas to area registry. |
39 * feedback, or when registering areas to area registry. |
43 * |
40 * |
60 * there can be a large amount of feedbacks in |
57 * there can be a large amount of feedbacks in |
61 * a short time (e.g. text selection which gives |
58 * a short time (e.g. text selection which gives |
62 * feedback on every new selected character). |
59 * feedback on every new selected character). |
63 * Also used for scrolling and dragging. |
60 * Also used for scrolling and dragging. |
64 * |
61 * |
|
62 * Different UI components have specific feedback types, which should be |
|
63 * used to maintain similar feedback behaviour in components of same type. |
|
64 * |
65 */ |
65 */ |
66 enum TTouchLogicalFeedback |
66 enum TTouchLogicalFeedback |
67 { |
67 { |
68 ETouchFeedbackNone, |
68 ETouchFeedbackNone = 0, |
69 ETouchFeedbackBasic, |
69 ETouchFeedbackBasic, |
70 ETouchFeedbackSensitive |
70 ETouchFeedbackSensitive, |
|
71 // New types for S60 5.2: |
|
72 ETouchFeedbackBasicButton = 0x100, |
|
73 ETouchFeedbackSensitiveButton, |
|
74 ETouchFeedbackList, |
|
75 ETouchFeedbackSensitiveList, |
|
76 ETouchFeedbackBoundaryList, |
|
77 ETouchFeedbackSlider, |
|
78 ETouchFeedbackEdit, |
|
79 ETouchFeedbackLineSelection, |
|
80 ETouchFeedbackBlankSelection, |
|
81 ETouchFeedbackTextSelection, |
|
82 ETouchFeedbackEmptyLineSelection, |
|
83 ETouchFeedbackTab, |
|
84 ETouchFeedbackPopUp, |
|
85 ETouchFeedbackIncreasingPopUp, |
|
86 ETouchFeedbackDecreasingPopUp, |
|
87 ETouchFeedbackFlick, |
|
88 ETouchFeedbackCheckbox, |
|
89 ETouchFeedbackSensitiveInput, |
|
90 ETouchFeedbackCharacterInputButton, |
|
91 ETouchFeedbackMultiTouchRecognized |
|
92 }; |
|
93 |
|
94 /** |
|
95 * Logical feedback types for producing continuous feedback. |
|
96 * |
|
97 */ |
|
98 enum TTouchContinuousFeedback |
|
99 { |
|
100 ETouchContinuousSmooth = 0x300, // For generic continuous feedback for custom controls |
|
101 ETouchContinuousSlider, |
|
102 ETouchContinuousInput, |
|
103 ETouchContinuousFlick |
|
104 }; |
|
105 |
|
106 /** |
|
107 * Physical feedback types as bitmask. |
|
108 * |
|
109 */ |
|
110 enum TTouchFeedbackType |
|
111 { |
|
112 ETouchFeedbackAudio = 0x01, |
|
113 ETouchFeedbackVibra = 0x02 |
71 }; |
114 }; |
72 |
115 |
73 |
116 #endif // TOUCHLOGICALFEEDBACK_H |
74 #endif // T_TOUCHLOGICALFEEDBACK_H |
|