mirror of
https://github.com/brl/mutter.git
synced 2024-12-04 05:40:41 -05:00
8b03d9ecc3
The end goal is to have all clutter backend code in src/backends. Input is the larger chunk of it, which is now part of our specific MutterClutterBackendNative, this extends to device manager, input devices, tools and keymap. This was supposed to be nice and incremental, but there's no sane way to cut this through. As a result of the refactor, a number of private Clutter functions are now exported for external backends to be possible. https://gitlab.gnome.org/GNOME/mutter/merge_requests/672
41 lines
1.7 KiB
C
41 lines
1.7 KiB
C
/*
|
|
* 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>
|
|
*/
|
|
|
|
#ifndef META_XKB_UTILS_H
|
|
#define META_XKB_UTILS_H
|
|
|
|
#include <xkbcommon/xkbcommon.h>
|
|
|
|
#include "clutter/clutter.h"
|
|
|
|
ClutterEvent * meta_key_event_new_from_evdev (ClutterInputDevice *device,
|
|
ClutterInputDevice *core_keyboard,
|
|
ClutterStage *stage,
|
|
struct xkb_state *xkb_state,
|
|
uint32_t button_state,
|
|
uint32_t _time,
|
|
uint32_t key,
|
|
uint32_t state);
|
|
void meta_xkb_translate_state (ClutterEvent *event,
|
|
struct xkb_state *xkb_state,
|
|
uint32_t button_state);
|
|
|
|
#endif /* META_XKB_UTILS_H */
|