swayfx/include/sway/input.h

25 lines
554 B
C
Raw Normal View History

2016-01-17 21:53:37 +11:00
#ifndef _SWAY_INPUT_H
#define _SWAY_INPUT_H
#include <libinput.h>
2017-10-23 02:38:30 +11:00
#include "sway/server.h"
2016-01-17 21:53:37 +11:00
#include "config.h"
#include "list.h"
2017-10-23 02:38:30 +11:00
struct sway_input {
list_t *input_devices;
};
2016-01-17 21:53:37 +11:00
struct input_config *new_input_config(const char* identifier);
char* libinput_dev_unique_id(struct libinput_device *dev);
2017-10-23 02:38:30 +11:00
struct sway_input *sway_input_create(struct sway_server *server);
2016-01-17 21:53:37 +11:00
/**
* Pointer used when reading input blocked.
* Shared so that it can be cleared from commands.c when closing the block
*/
extern struct input_config *current_input_config;
#endif