mirror of
https://github.com/brl/mutter.git
synced 2025-03-13 14:55:05 +00:00

We have this as platform-dependent data in the native backend, and a bunch of fallback code done in place in the evcode users. Stop making this platform-dependent data, and move it to the relevant ClutterEvents. The fallback code for the X11 backend case is about the same, but now it is done directly by the X11 backend. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1623>
48 lines
2.2 KiB
C
48 lines
2.2 KiB
C
/*
|
|
* Copyright (C) 2015 Red Hat
|
|
*
|
|
* 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/>.
|
|
*
|
|
* Authored by:
|
|
* Carlos Garnacho <carlosg@gnome.org>
|
|
*/
|
|
|
|
#ifndef META_EVENT_NATIVE_H
|
|
#define META_EVENT_NATIVE_H
|
|
|
|
#include "clutter/clutter.h"
|
|
|
|
typedef struct _MetaEventNative MetaEventNative;
|
|
|
|
MetaEventNative * meta_event_native_copy (MetaEventNative *event_evdev);
|
|
void meta_event_native_free (MetaEventNative *event_evdev);
|
|
|
|
uint64_t meta_event_native_get_time_usec (const ClutterEvent *event);
|
|
void meta_event_native_set_time_usec (ClutterEvent *event,
|
|
uint64_t time_usec);
|
|
void meta_event_native_set_relative_motion (ClutterEvent *event,
|
|
double dx,
|
|
double dy,
|
|
double dx_unaccel,
|
|
double dy_unaccel);
|
|
gboolean meta_event_native_get_relative_motion (const ClutterEvent *event,
|
|
double *dx,
|
|
double *dy,
|
|
double *dx_unaccel,
|
|
double *dy_unaccel);
|
|
|
|
int32_t meta_event_native_sequence_get_slot (const ClutterEventSequence *sequence);
|
|
|
|
#endif /* META_EVENT_NATIVE_H */
|