diff --git a/GraveZone/TextInput.cs b/GraveZone/TextInput.cs index b61d1b7..c2f23e8 100644 --- a/GraveZone/TextInput.cs +++ b/GraveZone/TextInput.cs @@ -120,8 +120,12 @@ public void Draw(GraveZone game) public void UpdateFocusWithClick(int x, int y, GraveZone game) { + var wasFocused = _isFocused; var anchoredRectangle = game.Ui.AnchorRectangle(_rectangle, _uiAnchor); _isFocused = anchoredRectangle.Contains(x, y); + + if (_isFocused && !wasFocused) + game.Audio.PlaySoundWithPitch(Sound.Click); } public string GetTextString()