2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: Logical feedback type enumeration.
15 * Part of: Tactile Feedback.
20 #ifndef TOUCHLOGICALFEEDBACK_H
21 #define TOUCHLOGICALFEEDBACK_H
26 * Pointer event types, that can be used when registering
31 ETouchEventStylusDown,
33 ETouchEventStylusPressDown,
34 ETouchEventStylusPressUp
38 * Logical feedback types, that can be used when producing direct
39 * feedback, or when registering areas to area registry.
41 * Notice, that client application cannot decide the actual physical
42 * feedback that shall be generated. It depends on device configuration,
43 * and current settings. In current devices the user changeable settings
44 * includes vibra and sound feedbacks.
46 * Instructions for using these feedback types:
48 * ETouchFeedbackNone - Use for disabling feedback for some areas of
49 * window when using area registry.
51 * ETouchFeedbackBasic - Use as default feedback for pen down events.
52 * For example, pressing a button or tab.
54 * ETouchFeedbackSensitive - Sensitive feedback for those situations,
55 * where the triggering action is not very
56 * important (e.g. change focus in list), or when
57 * there can be a large amount of feedbacks in
58 * a short time (e.g. text selection which gives
59 * feedback on every new selected character).
60 * Also used for scrolling and dragging.
62 * Different UI components have specific feedback types, which should be
63 * used to maintain similar feedback behaviour in components of same type.
66 enum TTouchLogicalFeedback
68 ETouchFeedbackNone = 0,
70 ETouchFeedbackSensitive,
71 // New types for S60 5.2:
72 ETouchFeedbackBasicButton = 0x100,
73 ETouchFeedbackSensitiveButton,
75 ETouchFeedbackSensitiveList,
76 ETouchFeedbackBoundaryList,
79 ETouchFeedbackLineSelection,
80 ETouchFeedbackBlankSelection,
81 ETouchFeedbackTextSelection,
82 ETouchFeedbackEmptyLineSelection,
85 ETouchFeedbackIncreasingPopUp,
86 ETouchFeedbackDecreasingPopUp,
88 ETouchFeedbackCheckbox,
89 ETouchFeedbackSensitiveInput,
90 ETouchFeedbackCharacterInputButton,
91 ETouchFeedbackMultiTouchRecognized
95 * Logical feedback types for producing continuous feedback.
98 enum TTouchContinuousFeedback
100 ETouchContinuousSmooth = 0x300, // For generic continuous feedback for custom controls
101 ETouchContinuousSlider,
102 ETouchContinuousInput,
103 ETouchContinuousFlick
107 * Physical feedback types as bitmask.
110 enum TTouchFeedbackType
112 ETouchFeedbackAudio = 0x01,
113 ETouchFeedbackVibra = 0x02
116 #endif // TOUCHLOGICALFEEDBACK_H