1 #ifndef __DALI_INTERNAL_KEY_EVENT_PROCESSOR_H__
2 #define __DALI_INTERNAL_KEY_EVENT_PROCESSOR_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.
34 * KeyEventProcessor receives the filtered key events from the Dali Event processor.
36 * When a key event is received the KeyEvent Processor queries the Stage to get the actor in focus.
37 * Any actor can be set by the actor api to be the focus of key events. The actor is then sent the key event.
38 * If no actor is set for focus then the key event is discarded.
40 class KeyEventProcessor
45 * Create a Key event processor.
47 KeyEventProcessor(Stage& stage);
50 * Non-virtual destructor; KeyEventProcessor is not a base class
55 * This function is called by the event processor whenever a key event occurs.
56 * @param[in] event The key event that has occurred.
58 void ProcessKeyEvent(const Integration::KeyEvent& event);
63 KeyEventProcessor(const KeyEventProcessor&);
66 KeyEventProcessor& operator=(const KeyEventProcessor& rhs);
70 Stage& mStage; ///< Used to deliver touch events
74 } // namespace Internal
78 #endif // __DALI_INTERNAL_KEY_EVENT_PROCESSOR_H__