2012-01-22 15:36:17 +00:00
|
|
|
/*
|
|
|
|
* Clutter.
|
|
|
|
*
|
|
|
|
* An OpenGL based 'interactive canvas' library.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2012 Intel Corp.
|
|
|
|
*
|
|
|
|
* 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/>.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CLUTTER_EVDEV_H__
|
|
|
|
#define __CLUTTER_EVDEV_H__
|
|
|
|
|
|
|
|
#include <glib.h>
|
|
|
|
#include <glib-object.h>
|
2013-08-09 15:06:39 +00:00
|
|
|
#include <xkbcommon/xkbcommon.h>
|
2012-01-22 15:36:17 +00:00
|
|
|
#include <clutter/clutter.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2013-07-15 16:24:35 +00:00
|
|
|
/**
|
|
|
|
* ClutterOpenDeviceCallback:
|
|
|
|
* @path: the device path
|
|
|
|
* @flags: flags to be passed to open
|
|
|
|
*
|
|
|
|
* This callback will be called when Clutter needs to access an input
|
|
|
|
* device. It should return an open file descriptor for the file at @path,
|
|
|
|
* or -1 if opening failed.
|
|
|
|
*/
|
|
|
|
typedef int (*ClutterOpenDeviceCallback) (const char *path,
|
|
|
|
int flags,
|
|
|
|
gpointer user_data,
|
|
|
|
GError **error);
|
|
|
|
|
|
|
|
void clutter_evdev_set_open_callback (ClutterOpenDeviceCallback callback,
|
|
|
|
gpointer user_data);
|
|
|
|
|
2012-01-22 15:36:17 +00:00
|
|
|
void clutter_evdev_release_devices (void);
|
|
|
|
void clutter_evdev_reclaim_devices (void);
|
|
|
|
|
2013-08-09 15:06:39 +00:00
|
|
|
struct xkb_state * clutter_evdev_get_keyboard_state (ClutterDeviceManager *evdev);
|
|
|
|
void clutter_evdev_set_keyboard_map (ClutterDeviceManager *evdev,
|
|
|
|
struct xkb_keymap *keymap);
|
|
|
|
|
2012-01-22 15:36:17 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __CLUTTER_EVDEV_H__ */
|