mach: mouse cursor support (#352)

adds mouse cursor support for standard cursors

Co-authored-by: Stephen Gutekanst <stephen.gutekanst@gmail.com>
This commit is contained in:
David Vanderson 2022-06-16 00:53:55 -04:00 committed by GitHub
parent f5affbe7ae
commit 43bff35d2c
Failed to generate hash of commit
5 changed files with 87 additions and 0 deletions

View file

@ -87,6 +87,10 @@ pub fn getWindowSize(engine: *Engine) structs.Size {
return engine.internal.getWindowSize();
}
pub fn setMouseCursor(engine: *Engine, cursor: enums.MouseCursor) !void {
try engine.internal.setMouseCursor(cursor);
}
pub fn hasEvent(engine: *Engine) bool {
return engine.internal.hasEvent();
}