First pass at custom cursor display
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user