aboutsummaryrefslogtreecommitdiff
path: root/examples/config.h
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-09-06 08:28:49 +0900
committerGitHub <noreply@github.com>2017-09-06 08:28:49 +0900
commitf05c83efe82ba88ecffcee4cdd783b33b592508f (patch)
treeef8a9bf7125d7c4d70eca6d1ba6575badbf23cc4 /examples/config.h
parentc5a2014a2ff3e22086c0d911f3bf771c5d5fb112 (diff)
parent500bcc49c45dd4bae083d3d3fd0a5f10feb2834b (diff)
Merge pull request #134 from acrisci/feature/refactor-device-configuration
pointer.c: refactor device configuration
Diffstat (limited to 'examples/config.h')
-rw-r--r--examples/config.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/config.h b/examples/config.h
index bc2e101b..e26531c2 100644
--- a/examples/config.h
+++ b/examples/config.h
@@ -4,6 +4,9 @@
#define _POSIX_C_SOURCE 200112L
#endif
#include <wlr/types/wlr_output_layout.h>
+#include <wlr/types/wlr_input_device.h>
+#include <wlr/types/wlr_cursor.h>
+#include "shared.h"
struct output_config {
char *name;
@@ -41,4 +44,17 @@ void example_config_destroy(struct example_config *config);
struct output_config *example_config_get_output(struct example_config *config,
struct wlr_output *output);
+/**
+ * Get configuration for the device. If the device is not configured, returns
+ * NULL.
+ */
+struct device_config *example_config_get_device(struct example_config *config,
+ struct wlr_input_device *device);
+
+/**
+ * Configure cursor device mappings.
+ */
+void example_config_configure_cursor(struct example_config *config,
+ struct wlr_cursor *cursor, struct compositor_state *state);
+
#endif