Use the key definition for P
This commit is contained in:
parent
c4b477c205
commit
8788cb59b9
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ func (g *Game) Init() {
|
|||
// Update - Update game
|
||||
func (g *Game) Update() {
|
||||
if !g.GameOver {
|
||||
if raylib.IsKeyPressed('P') {
|
||||
if raylib.IsKeyPressed(raylib.KeyP) {
|
||||
g.Pause = !g.Pause
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue