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:
parent
f5affbe7ae
commit
43bff35d2c
5 changed files with 87 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue