aboutsummaryrefslogtreecommitdiff
path: root/include/input_state.h
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-10-29 17:52:16 -0400
committerDrew DeVault <sir@cmpwn.com>2015-10-29 17:52:16 -0400
commitca5a2a387c97914d97929b09113359c45ba23279 (patch)
treec702c4a176e4e78b295c14c6d457296fcf094527 /include/input_state.h
parentad1cd0a3bd2111041a38c920d1c10a5e5534b275 (diff)
parent515ed86f4d8106d4396d5b8056fdf5600e606458 (diff)
Merge pull request #212 from sce/mouse_warping
Learn mouse_warping
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 {
struct pointer_button_state right;
struct pointer_button_state scroll;
- // pointer position
- struct mouse_origin{
- int x, y;
- } origin;
-
// change in pointer position
struct {
int x, y;
@@ -65,6 +60,9 @@ extern struct pointer_state {
int mode;
} pointer_state;
+void pointer_position_set(struct wlc_origin *new_origin, bool force_focus);
+void center_pointer_on(swayc_t *view);
+
// on button release unset mode depending on the button.
// on button press set mode conditionally depending on the button
void pointer_mode_set(uint32_t button, bool condition);