aboutsummaryrefslogtreecommitdiff
path: root/src/window.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.h')
-rw-r--r--src/window.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/window.h b/src/window.h
index 7c77aa1..d6e317e 100644
--- a/src/window.h
+++ b/src/window.h
@@ -28,7 +28,7 @@ struct imv_event {
bool pressed;
} keyboard;
struct {
- int x, y, dx, dy;
+ double x, y, dx, dy;
} mouse_motion;
struct {
int button;
@@ -52,6 +52,8 @@ bool imv_window_is_fullscreen(struct imv_window *window);
void imv_window_set_fullscreen(struct imv_window *window, bool fullscreen);
+bool imv_window_get_mouse_button(struct imv_window *window, int button);
+
void imv_window_present(struct imv_window *window);
void imv_window_wait_for_event(struct imv_window *window, double timeout);