2010-11-04 10:59:22 +00:00
|
|
|
/*
|
|
|
|
* Clutter.
|
|
|
|
*
|
|
|
|
* An OpenGL based 'interactive canvas' library.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2010 Intel Corporation.
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
* Authors:
|
|
|
|
* Damien Lespiau <damien.lespiau@intel.com>
|
|
|
|
*/
|
|
|
|
|
2011-12-06 21:46:37 +00:00
|
|
|
#ifndef __CLUTTER_XKB_UTILS_H__
|
|
|
|
#define __CLUTTER_XKB_UTILS_H__
|
|
|
|
|
2012-06-05 05:00:48 +00:00
|
|
|
#include <xkbcommon/xkbcommon.h>
|
2010-11-04 10:59:22 +00:00
|
|
|
|
|
|
|
#include "clutter-stage.h"
|
|
|
|
#include "clutter-event.h"
|
|
|
|
#include "clutter-input-device.h"
|
|
|
|
|
|
|
|
ClutterEvent * _clutter_key_event_new_from_evdev (ClutterInputDevice *device,
|
2013-08-09 09:53:46 +00:00
|
|
|
ClutterInputDevice *core_keyboard,
|
2010-11-04 10:59:22 +00:00
|
|
|
ClutterStage *stage,
|
2012-08-23 23:16:25 +00:00
|
|
|
struct xkb_state *xkb_state,
|
2013-08-09 09:53:46 +00:00
|
|
|
uint32_t button_state,
|
2010-11-04 10:59:22 +00:00
|
|
|
uint32_t _time,
|
|
|
|
uint32_t key,
|
2012-08-23 23:16:25 +00:00
|
|
|
uint32_t state);
|
2013-09-04 12:42:56 +00:00
|
|
|
void _clutter_xkb_translate_state (ClutterEvent *event,
|
|
|
|
struct xkb_state *xkb_state,
|
|
|
|
uint32_t button_state);
|
2011-12-06 21:46:37 +00:00
|
|
|
|
|
|
|
#endif /* __CLUTTER_XKB_UTILS_H__ */
|