diff options
author | Harry Jeffery <harry@exec64.co.uk> | 2019-07-13 00:25:25 +0100 |
---|---|---|
committer | Harry Jeffery <harry@exec64.co.uk> | 2019-07-13 00:25:25 +0100 |
commit | 5a1571d00dd1e73f906b1c83b7abe13aa0908e9a (patch) | |
tree | 77ff8548599ee1a1acf899795e5fba5162b73dca /src/window.h | |
parent | 96514247228548f2bf512e42fb072f965bd270f1 (diff) | |
download | imv-5a1571d00dd1e73f906b1c83b7abe13aa0908e9a.tar.gz |
Handle mouse input
Diffstat (limited to 'src/window.h')
-rw-r--r-- | src/window.h | 4 |
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); |