From 86d91d7032f2d8175fd1ab3b23ee0c1a6445fb7a Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Tue, 19 Mar 2024 17:40:37 -0600 Subject: Implementing button presses and integrating it with the KeysM monad. --- harness/include/plugin.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'harness/include/plugin.h') diff --git a/harness/include/plugin.h b/harness/include/plugin.h index c48a2f5..be3a022 100644 --- a/harness/include/plugin.h +++ b/harness/include/plugin.h @@ -8,6 +8,7 @@ #include #include #include +#include #include "plugin_types.h" #include @@ -24,6 +25,7 @@ EXPORT_INCLUDE() EXPORT_INCLUDE() EXPORT_INCLUDE() +EXPORT_INCLUDE() // clang-format on #define MAX_QUEUED_ACTIONS 8 @@ -139,9 +141,12 @@ typedef struct PLUGIN { * Handles a keybinding. */ EXPORT(opqst_t (*plugin_handle_keybinding)( - struct wlr_keyboard *keyboard, - struct wlr_keyboard_key_event *event, uint32_t modifiers, uint32_t keysym, - uint32_t codepoint, int *out_handled, opqst_t state)); + struct wlr_keyboard *keyboard, struct wlr_keyboard_key_event *event, + uint32_t modifiers, uint32_t keysym, uint32_t codepoint, int *out_handled, + opqst_t state)); + + EXPORT(opqst_t (*plugin_handle_button)(struct wlr_pointer_button_event *event, + opqst_t state)); /* * Handles a surface being mapped, unmapped or destroyed. -- cgit