First pass at custom cursor display

This commit is contained in:
2020-04-10 19:55:16 +01:00
parent d99a5b9ec3
commit bb3ddc4896
5 changed files with 146 additions and 0 deletions

View File

@@ -45,6 +45,13 @@ func main() {
log.Fatal("Couldn't create window: %v", err)
}
// TODO: move this into driver. It will need to be able to change cursor.
cursor, err := assets.Cursor(assetstore.UltPointer)
if err != nil {
log.Fatalf("Couldn't load cursor: %v", err)
}
win.SetCursor(cursor.Image)
if err := win.Run(); err != nil {
log.Fatal(err)
}