| 1 |
/* |
| 2 |
* Clutter. |
| 3 |
* |
| 4 |
* An OpenGL based 'interactive canvas' library. |
| 5 |
* |
| 6 |
* Copyright (C) 2010 Intel Corporation. |
| 7 |
* |
| 8 |
* This library is free software; you can redistribute it and/or |
| 9 |
* modify it under the terms of the GNU Lesser General Public |
| 10 |
* License as published by the Free Software Foundation; either |
| 11 |
* version 2 of the License, or (at your option) any later version. |
| 12 |
* |
| 13 |
* This library is distributed in the hope that it will be useful, |
| 14 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 |
* Lesser General Public License for more details. |
| 17 |
* |
| 18 |
* You should have received a copy of the GNU Lesser General Public |
| 19 |
* License along with this library. If not, see <http://www.gnu.org/licenses/>. |
| 20 |
|
| 21 |
* Authors: |
| 22 |
* Damien Lespiau <[email protected]> |
| 23 |
*/ |
| 24 |
|
| 25 |
#ifndef __CLUTTER_XKB_UTILS_H__ |
| 26 |
#define __CLUTTER_XKB_UTILS_H__ |
| 27 |
|
| 28 |
#include <xkbcommon/xkbcommon.h> |
| 29 |
|
| 30 |
#include "clutter-stage.h" |
| 31 |
#include "clutter-event.h" |
| 32 |
#include "clutter-input-device.h" |
| 33 |
|
| 34 |
ClutterEvent * _clutter_key_event_new_from_evdev (ClutterInputDevice *device, |
| 35 |
ClutterInputDevice *core_keyboard, |
| 36 |
ClutterStage *stage, |
| 37 |
struct xkb_state *xkb_state, |
| 38 |
uint32_t button_state, |
| 39 |
uint32_t _time, |
| 40 |
uint32_t key, |
| 41 |
uint32_t state); |
| 42 |
void _clutter_xkb_translate_state (ClutterEvent *event, |
| 43 |
struct xkb_state *xkb_state, |
| 44 |
uint32_t button_state); |
| 45 |
|
| 46 |
#endif /* __CLUTTER_XKB_UTILS_H__ */ |