wlroots-hyprland/include/rootston/input.h

36 lines
914 B
C
Raw Normal View History

2018-02-12 21:29:23 +01:00
#ifndef ROOTSTON_INPUT_H
#define ROOTSTON_INPUT_H
2017-09-23 02:24:32 +02:00
#include <wayland-server.h>
#include <wlr/types/wlr_cursor.h>
2018-02-12 21:29:23 +01:00
#include <wlr/types/wlr_input_device.h>
2017-09-23 02:24:32 +02:00
#include <wlr/types/wlr_seat.h>
2017-09-23 16:13:05 +02:00
#include "rootston/config.h"
2018-02-12 21:29:23 +01:00
#include "rootston/cursor.h"
2017-09-23 16:36:32 +02:00
#include "rootston/server.h"
2018-02-12 21:29:23 +01:00
#include "rootston/view.h"
2017-09-23 02:24:32 +02:00
struct roots_input {
2017-09-23 16:13:05 +02:00
struct roots_config *config;
2017-09-23 20:53:15 +02:00
struct roots_server *server;
2017-09-23 16:13:05 +02:00
struct wl_listener new_input;
2017-09-23 20:53:15 +02:00
2017-11-08 20:53:08 +01:00
struct wl_list seats;
2017-09-23 02:24:32 +02:00
};
2017-09-23 16:13:05 +02:00
struct roots_input *input_create(struct roots_server *server,
struct roots_config *config);
void input_destroy(struct roots_input *input);
2017-11-07 21:56:11 +01:00
struct roots_seat *input_seat_from_wlr_seat(struct roots_input *input,
struct wlr_seat *seat);
2017-11-10 14:27:45 +01:00
bool input_view_has_focus(struct roots_input *input, struct roots_view *view);
2017-11-22 14:10:06 +01:00
struct roots_seat *input_get_seat(struct roots_input *input, char *name);
struct roots_seat *input_last_active_seat(struct roots_input *input);
2017-09-23 02:24:32 +02:00
#endif