1 #ifndef __DALI_INTEGRATION_KEY_EVENT_H__
2 #define __DALI_INTEGRATION_KEY_EVENT_H__
5 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
7 // Licensed under the Flora License, Version 1.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
11 // http://floralicense.org/license/
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.
24 #include <dali/integration-api/events/event.h>
26 namespace Dali DALI_IMPORT_API
33 * An instance of this class should be used by the adaptor to send a key event to
37 struct KeyEvent : public Event
40 // Specifies the state of the key event.
43 Down, /**< Key down */
56 * @param[in] keyName The name of the key pressed or command from the IMF, if later then the some following parameters will be needed.
57 * @param[in] keyString A string of input characters or key pressed
58 * @param[in] keyCode The unique key code for the key pressed.
59 * @param[in] keyModifier The key modifier for special keys like shift and alt
60 * @param[in] timeStamp The time (in ms) that the key event occurred.
61 * @param[in] keyState The state of the key event.
63 KeyEvent(const std::string& keyName,
64 const std::string& keyString,
67 unsigned long timeStamp,
68 const State& keyState);
78 *@copydoc Dali::KeyEvent::keyPressedName
83 *@copydoc Dali::KeyEvent::keyPressed
85 std::string keyString;
88 * @copydoc Dali::KeyEvent::keyCode
93 *@copydoc Dali::KeyEvent::keyModifier
98 *@copydoc Dali::KeyEvent::time
103 * State of the key event.
110 } // namespace Integration
114 #endif // __DALI_INTEGRATION_KEY_EVENT_H__