aab32e0204e9d88cf0f4665062aa4b373ef5363b
[platform/core/uifw/dali-core.git] / dali / devel-api / events / device.h
1 #ifndef DALI_DEVICE_H
2 #define DALI_DEVICE_H
3
4 /*
5  * Copyright (c) 2017 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20
21 namespace Dali
22 {
23
24 /**
25  * @brief Information about device types
26  *
27  * These types are for widget viewer applications.
28  * A widget viewer application by Dali have to deliver events to widget applications
29  * Server for handling events actually delivers any events to widget applications
30  * The server needs to know input device information such as type to deliver events of proper type to widget applications
31  */
32 namespace DevelDevice
33 {
34
35 /**
36  * @brief Categorization type about input Device
37  */
38 namespace Class
39 {
40
41 /**
42  * @brief An enum of Device Class types.
43  */
44 enum Type
45 {
46   NONE,      ///< Not a device
47   USER,      ///< The user/seat (the user themselves)
48   KEYBOARD,  ///< A regular keyboard, numberpad or attached buttons
49   MOUSE,     ///< A mouse, trackball or touchpad relative motion device
50   TOUCH,     ///< A touchscreen with fingers or stylus
51   PEN,       ///< A special pen device
52   POINTER,   ///< A pointing device based on laser, infrared or similar technology
53   GAMEPAD    ///< A gamepad controller or joystick
54 };
55
56 } // namespace DeviceClass
57
58 /**
59  * @brief Subcategorization type about input device
60  */
61 namespace Subclass
62 {
63
64 /**
65  * @brief An enum of Device Subclass types.
66  */
67 enum Type
68 {
69   NONE, ///< Not a device
70   FINGER, ///< The normal flat of your finger
71   FINGERNAIL, ///< A fingernail
72   KNUCKLE, ///< A Knuckle
73   PALM, ///< The palm of a users hand
74   HAND_SIDE, ///< The side of your hand
75   HAND_FLAT, ///< The flat of your hand
76   PEN_TIP, ///< The tip of a pen
77   TRACKPAD, ///< A trackpad style mouse
78   TRACKPOINT, //< A trackpoint style mouse
79   TRACKBALL, ///< A trackball style mouse
80 };
81
82 } // namespace DeviceSubclass
83
84 } // namespace DevelDevice
85
86 } // namespace Dali
87
88 #endif  //DALI_KEY_EVENT_DEVEL_H