2017-09-22 20:24:32 -04:00
|
|
|
#ifndef _ROOTSTON_INPUT_H
|
|
|
|
|
#define _ROOTSTON_INPUT_H
|
|
|
|
|
#include <wayland-server.h>
|
|
|
|
|
#include <wlr/types/wlr_input_device.h>
|
|
|
|
|
#include <wlr/types/wlr_cursor.h>
|
|
|
|
|
#include <wlr/types/wlr_seat.h>
|
2017-11-07 15:56:11 -05:00
|
|
|
#include "rootston/cursor.h"
|
2017-09-23 10:13:05 -04:00
|
|
|
#include "rootston/config.h"
|
2017-09-22 20:24:32 -04:00
|
|
|
#include "rootston/view.h"
|
2017-09-23 10:36:32 -04:00
|
|
|
#include "rootston/server.h"
|
2017-09-22 20:24:32 -04:00
|
|
|
|
|
|
|
|
struct roots_input {
|
2017-09-23 10:13:05 -04:00
|
|
|
struct roots_config *config;
|
2017-09-23 14:53:15 -04:00
|
|
|
struct roots_server *server;
|
2017-09-23 10:13:05 -04:00
|
|
|
|
|
|
|
|
struct wl_listener input_add;
|
|
|
|
|
struct wl_listener input_remove;
|
2017-09-23 14:53:15 -04:00
|
|
|
|
2017-11-08 14:53:08 -05:00
|
|
|
struct wl_list seats;
|
2017-10-06 07:32:59 -04:00
|
|
|
|
2017-10-15 11:06:03 -04:00
|
|
|
struct wl_listener pointer_grab_begin;
|
2017-10-06 07:32:59 -04:00
|
|
|
struct wl_listener pointer_grab_end;
|
2017-10-07 10:55:17 +02:00
|
|
|
|
|
|
|
|
struct wl_listener request_set_cursor;
|
2017-09-22 20:24:32 -04:00
|
|
|
};
|
|
|
|
|
|
2017-09-23 10:13:05 -04:00
|
|
|
struct roots_input *input_create(struct roots_server *server,
|
|
|
|
|
struct roots_config *config);
|
|
|
|
|
void input_destroy(struct roots_input *input);
|
|
|
|
|
|
2017-11-07 15:56:11 -05:00
|
|
|
struct roots_seat *input_seat_from_wlr_seat(struct roots_input *input,
|
|
|
|
|
struct wlr_seat *seat);
|
|
|
|
|
|
2017-09-22 20:24:32 -04:00
|
|
|
#endif
|