mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-24 13:45:58 +01:00
f5e8fa48f3
We can grab the event loop from the wlr_session instead.
29 lines
817 B
C
29 lines
817 B
C
/*
|
|
* This an unstable interface of wlroots. No guarantees are made regarding the
|
|
* future consistency of this API.
|
|
*/
|
|
#ifndef WLR_USE_UNSTABLE
|
|
#error "Add -DWLR_USE_UNSTABLE to enable unstable wlroots features"
|
|
#endif
|
|
|
|
#ifndef WLR_BACKEND_LIBINPUT_H
|
|
#define WLR_BACKEND_LIBINPUT_H
|
|
|
|
#include <libinput.h>
|
|
#include <wayland-server-core.h>
|
|
#include <wlr/backend.h>
|
|
#include <wlr/backend/session.h>
|
|
|
|
struct wlr_input_device;
|
|
|
|
struct wlr_backend *wlr_libinput_backend_create(struct wlr_session *session);
|
|
/**
|
|
* Gets the underlying struct libinput_device handle for the given input device.
|
|
*/
|
|
struct libinput_device *wlr_libinput_get_device_handle(
|
|
struct wlr_input_device *dev);
|
|
|
|
bool wlr_backend_is_libinput(struct wlr_backend *backend);
|
|
bool wlr_input_device_is_libinput(struct wlr_input_device *device);
|
|
|
|
#endif
|