1
0
Fork 0

feat: dont close application when user presses Esc key

This commit is contained in:
Henrik Hautakoski 2025-10-19 22:58:21 +02:00
parent 0bc5863284
commit d1ed55677e

View file

@ -22,6 +22,9 @@ func main() {
})
defer render.Exit()
// Dont close application when user presses escape
rl.SetExitKey(rl.KeyNull)
// Set window icon
if icon := graphics.LoadImageFromMemory(".png", assets.Icon); icon != nil {
rl.SetWindowIcon(*icon)