summaryrefslogtreecommitdiff
path: root/include/sway/old/input.h
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2017-11-18 11:22:02 -0500
committerDrew DeVault <[email protected]>2017-11-18 11:22:02 -0500
commit733993a651c71f7e2198d505960d6bbd31e0e107 (patch)
treee51732c5872b624e73355f9e5b3f762101f3cd0d /include/sway/old/input.h
parent0c8491f7d0c735299a25f0ab929f5d1e0866b929 (diff)
Move everything to sway/old/
Diffstat (limited to 'include/sway/old/input.h')
-rw-r--r--include/sway/old/input.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/sway/old/input.h b/include/sway/old/input.h
new file mode 100644
index 00000000..eb92e470
--- /dev/null
+++ b/include/sway/old/input.h
@@ -0,0 +1,24 @@
+#ifndef _SWAY_INPUT_H
+#define _SWAY_INPUT_H
+#include <libinput.h>
+#include "sway/server.h"
+#include "config.h"
+#include "list.h"
+
+struct sway_input {
+ list_t *input_devices;
+};
+
+struct input_config *new_input_config(const char* identifier);
+
+char* libinput_dev_unique_id(struct libinput_device *dev);
+
+struct sway_input *sway_input_create(struct sway_server *server);
+
+/**
+ * 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