1 #ifndef __DALI_WAYLAND_INPUT_LISTENERS_H__
2 #define __DALI_WAYLAND_INPUT_LISTENERS_H__
5 * Copyright (c) 2015 Samsung Electronics Co., Ltd.
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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.
36 * Functions for getting wayland listener objects as defined in wayland-client-protocol.h
37 * The listen objects contain C callbacks, which currently expect the user data-field
38 * to be a DALi InputInterface pointer.
40 * E.g. if setting the keyboard listener
42 * wl_keyboard_add_listener( keyboard, &Wayland::GetKeyboardListener(), &InputInterface );
48 * @brief Listens for keyboard / touch / pointer interfaces being enabled /disabled on a seat.
49 * @return seat listener
51 const WlSeatListener* GetSeatListener();
54 * @brief returns a pointer to the callbacks used to listen to pointer events
55 * @return pointer listener
57 const WlPointerListener* GetPointerListener();
60 * @brief returns a pointer to the callbacks used to listen to touch events
61 * @return touch listener
63 const WlTouchListener* GetTouchListener();
66 * @brief returns a pointer to the callbacks used to listen to keyboard events
67 * @return keyboard listener
69 const WlKeyboardListener* GetKeyboardListener();
76 #endif //__DALI_WAYLAND_INPUT_LISTENERS_H__