aboutsummaryrefslogtreecommitdiff
path: root/examples/config.h
diff options
context:
space:
mode:
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