aboutsummaryrefslogtreecommitdiff
path: root/src/gfz.zig
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-09-11 16:09:24 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-09-11 16:09:24 +0700
commitb63a0c0c0d227c79ea84d7023f18fbf735be9062 (patch)
treeb424fafbceb66abd92f138958b44aae8ac71e927 /src/gfz.zig
parentbe76fd8b6e8ce2c4be4a53e0f3e9ced369ad5e66 (diff)
downloadgfz-b63a0c0c0d227c79ea84d7023f18fbf735be9062.tar.gz
Wrap some more input handling
Diffstat (limited to 'src/gfz.zig')
-rw-r--r--src/gfz.zig8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gfz.zig b/src/gfz.zig
index 53e4aaa..46bd247 100644
--- a/src/gfz.zig
+++ b/src/gfz.zig
@@ -98,11 +98,19 @@ pub fn deinit() Error!void {
try checkError();
}
+/// Process all pending events.
pub fn pollEvents() Error!void {
glfwPollEvents();
try checkError();
}
+/// Return whether raw mouse motion is supported.
+pub fn rawMouseMotionSupported() Error!bool {
+ const result = glfwRawMouseMotionSupported();
+ try checkError();
+ return result == GLFW_TRUE;
+}
+
pub const Window = @import("Window.zig");
test {