summaryrefslogtreecommitdiff
path: root/src/common/input.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/input.h')
-rw-r--r--src/common/input.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/common/input.h b/src/common/input.h
index ffd1663..aad5c9a 100644
--- a/src/common/input.h
+++ b/src/common/input.h
@@ -15,11 +15,16 @@ struct input_queue {
bool relative;
struct yasl_surface *reset_surface;
bool reset_pending;
+ /* YASL_BUTTON_BIT() mask from pushed DOWN/UP events. */
+ uint32_t buttons;
+ /* Set by backends whose pointer leave ends any press: no release follows. */
+ bool leave_ends_press;
};
/* Copies text payloads and stamps time_ns when zero. Unless q->relative is set,
* POINTER_MOTION delta is computed from the previous position; otherwise the
- * backend-supplied delta is kept. Leave and reset clear the position history. */
+ * backend-supplied delta is kept. Leave and reset clear the position history.
+ * Pointer events get the held-button mask; reset clears it. */
bool input_queue_push(struct input_queue *q, const struct yasl_event *ev);
bool input_queue_pop(struct input_queue *q, struct yasl_event *ev);
void input_queue_clear(struct input_queue *q);