mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-20 16:20:18 +01:00
parent
4d97430d44
commit
0e2cacabce
1 changed files with 3 additions and 0 deletions
|
@ -32,6 +32,9 @@ func _ready():
|
|||
history_position = game.state["history"].size()
|
||||
|
||||
func _input(event):
|
||||
if not input.has_focus():
|
||||
return
|
||||
|
||||
if game.state["history"].size() > 0:
|
||||
if event.is_action_pressed("ui_up"):
|
||||
if history_position > 0:
|
||||
|
|
Loading…
Reference in a new issue