summaryrefslogtreecommitdiffstats
path: root/include/input_state.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/input_state.h')
-rw-r--r--include/input_state.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/input_state.h b/include/input_state.h
index d87ae18c..a1f238e1 100644
--- a/include/input_state.h
+++ b/include/input_state.h
@@ -48,11 +48,6 @@ extern struct pointer_state {
48 struct pointer_button_state right; 48 struct pointer_button_state right;
49 struct pointer_button_state scroll; 49 struct pointer_button_state scroll;
50 50
51 // pointer position
52 struct mouse_origin{
53 int x, y;
54 } origin;
55
56 // change in pointer position 51 // change in pointer position
57 struct { 52 struct {
58 int x, y; 53 int x, y;
@@ -65,6 +60,9 @@ extern struct pointer_state {
65 int mode; 60 int mode;
66} pointer_state; 61} pointer_state;
67 62
63void pointer_position_set(struct wlc_origin *new_origin, bool force_focus);
64void center_pointer_on(swayc_t *view);
65
68// on button release unset mode depending on the button. 66// on button release unset mode depending on the button.
69// on button press set mode conditionally depending on the button 67// on button press set mode conditionally depending on the button
70void pointer_mode_set(uint32_t button, bool condition); 68void pointer_mode_set(uint32_t button, bool condition);