feat: dont close application when user presses Esc key
This commit is contained in:
parent
0bc5863284
commit
d1ed55677e
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue