mach: add setCursorMode (desktop only for now)

This commit is contained in:
Martin Wickham 2022-10-13 09:28:26 -05:00 committed by Stephen Gutekanst
parent 2c65845aed
commit 78dfa2df6b
5 changed files with 31 additions and 0 deletions

View file

@ -123,6 +123,10 @@ pub const Platform = struct {
js.machSetMouseCursor(cursor_name.ptr, cursor_name.len);
}
pub fn setCursorMode(_: *Platform, _: enums.CursorMode) !void {
@panic("TODO: Implement setCursorMode for wasm");
}
fn pollChanges(platform: *Platform) void {
const change_type = js.machChangeShift();