We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f1fe72 commit f3030d8Copy full SHA for f3030d8
2 files changed
articles/tutorials/building_2d_games/11_input_management/snippets/core.cs
@@ -112,7 +112,7 @@ protected override void Update(GameTime gameTime)
112
// Update the input manager.
113
Input.Update(gameTime);
114
115
- if (ExitOnEscape && Input.Keyboard.IsKeyDown(Keys.Escape))
+ if (ExitOnEscape && Input.Keyboard.WasKeyJustPressed(Keys.Escape))
116
{
117
Exit();
118
}
articles/tutorials/building_2d_games/15_audio_controller/snippets/core.cs
@@ -132,7 +132,7 @@ protected override void Update(GameTime gameTime)
132
// Update the audio controller.
133
Audio.Update();
134
135
136
137
138
0 commit comments