williamr@2
|
1 |
/*
|
williamr@2
|
2 |
* Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies).
|
williamr@2
|
3 |
* All rights reserved.
|
williamr@2
|
4 |
* This component and the accompanying materials are made available
|
williamr@2
|
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
|
williamr@2
|
6 |
* which accompanies this distribution, and is available
|
williamr@2
|
7 |
* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
|
williamr@2
|
8 |
*
|
williamr@2
|
9 |
* Initial Contributors:
|
williamr@2
|
10 |
* Nokia Corporation - initial contribution.
|
williamr@2
|
11 |
*
|
williamr@2
|
12 |
* Contributors:
|
williamr@2
|
13 |
*
|
williamr@2
|
14 |
* Description: Logical feedback type enumeration.
|
williamr@2
|
15 |
*
|
williamr@2
|
16 |
*/
|
williamr@2
|
17 |
|
williamr@2
|
18 |
|
williamr@2
|
19 |
#ifndef T_TOUCHLOGICALFEEDBACK_H
|
williamr@2
|
20 |
#define T_TOUCHLOGICALFEEDBACK_H
|
williamr@2
|
21 |
|
williamr@2
|
22 |
|
williamr@2
|
23 |
|
williamr@2
|
24 |
#include <e32std.h>
|
williamr@2
|
25 |
|
williamr@2
|
26 |
|
williamr@2
|
27 |
/**
|
williamr@2
|
28 |
* Pointer event types, that can be used when registering
|
williamr@2
|
29 |
* areas to registry. Currently only stylus down event
|
williamr@2
|
30 |
* is supported (this means that there will be feedback
|
williamr@2
|
31 |
* whenever stylus down event is received on registered
|
williamr@2
|
32 |
* area, no matter what happens _after_ stylus down event).
|
williamr@2
|
33 |
*/
|
williamr@2
|
34 |
enum TTouchEventType
|
williamr@2
|
35 |
{
|
williamr@2
|
36 |
ETouchEventStylusDown
|
williamr@2
|
37 |
};
|
williamr@2
|
38 |
|
williamr@2
|
39 |
|
williamr@2
|
40 |
/**
|
williamr@2
|
41 |
* Logical feedback types, that can be used when producing direct
|
williamr@2
|
42 |
* feedback, or when registering areas to area registry.
|
williamr@2
|
43 |
*
|
williamr@2
|
44 |
* Notice, that client application cannot decide the actual physical
|
williamr@2
|
45 |
* feedback that shall be generated. It depends on device configuration,
|
williamr@2
|
46 |
* and current settings. In current devices the user changeable settings
|
williamr@2
|
47 |
* includes vibra and sound feedbacks.
|
williamr@2
|
48 |
*
|
williamr@2
|
49 |
* Instructions for using these feedback types:
|
williamr@2
|
50 |
*
|
williamr@2
|
51 |
* ETouchFeedbackNone - Use for disabling feedback for some areas of
|
williamr@2
|
52 |
* window when using area registry.
|
williamr@2
|
53 |
*
|
williamr@2
|
54 |
* ETouchFeedbackBasic - Use as default feedback for pen down events.
|
williamr@2
|
55 |
* For example, pressing a button or tab.
|
williamr@2
|
56 |
*
|
williamr@2
|
57 |
* ETouchFeedbackSensitive - Sensitive feedback for those situations,
|
williamr@2
|
58 |
* where the triggering action is not very
|
williamr@2
|
59 |
* important (e.g. change focus in list), or when
|
williamr@2
|
60 |
* there can be a large amount of feedbacks in
|
williamr@2
|
61 |
* a short time (e.g. text selection which gives
|
williamr@2
|
62 |
* feedback on every new selected character).
|
williamr@2
|
63 |
* Also used for scrolling and dragging.
|
williamr@2
|
64 |
*
|
williamr@2
|
65 |
*/
|
williamr@2
|
66 |
enum TTouchLogicalFeedback
|
williamr@2
|
67 |
{
|
williamr@2
|
68 |
ETouchFeedbackNone,
|
williamr@2
|
69 |
ETouchFeedbackBasic,
|
williamr@2
|
70 |
ETouchFeedbackSensitive
|
williamr@2
|
71 |
};
|
williamr@2
|
72 |
|
williamr@2
|
73 |
|
williamr@2
|
74 |
#endif // T_TOUCHLOGICALFEEDBACK_H
|