Skip to content

Commit e3c768f

Browse files
committed
Fix method name in documentation
1 parent ae4a2ab commit e3c768f

File tree

1 file changed

+2
-2
lines changed
  • articles/tutorials/building_2d_games/10_input_management

1 file changed

+2
-2
lines changed

articles/tutorials/building_2d_games/10_input_management/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -894,9 +894,9 @@ Let's update the input code in our game now to instead use the `InputManager` cl
894894
4. Finally, update the game controls to use the `InputManager`. Replace the `HandleKeyboardInput`, `HandleMouseInput` and `HandleGamePadInput` methods with the following:
895895

896896
```cs
897-
private void KeyboardInputCheck()
897+
private void HandleKeyboardInput()
898898
{
899-
if (InputManager.Keyboard.IsKeyDown(Keys.Esc))
899+
if (InputManager.Keyboard.IsKeyDown(Keys.Escape))
900900
{
901901
Exit();
902902
}

0 commit comments

Comments
 (0)