Description:
Fix Quit controls.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
@@ -199,9 +199,18 | |||||
|
199 |
|
199 | ||
|
200 | } |
|
200 | } |
|
201 |
|
201 | ||
|
|
202 | #if DEBUG | ||
|
202 | if (keyboardCur.IsKeyDown(Keys.Q) && keyboardPrev.IsKeyUp(Keys.Q)) |
|
203 | if (keyboardCur.IsKeyDown(Keys.Q) && keyboardPrev.IsKeyUp(Keys.Q)) |
|
203 | { |
|
204 | { |
|
204 |
|
|
205 | Logging.Info("Quitting"); |
|
|
206 | SendMessage(new QuitGameMessage{}); | ||
|
|
207 | } | ||
|
|
208 | #endif | ||
|
|
209 | if ((keyboardCur.IsKeyDown(Keys.Q) && keyboardPrev.IsKeyUp(Keys.Q)) | ||
|
|
210 | && (keyboardCur.IsKeyDown(Keys.LeftControl) | ||
|
|
211 | || keyboardCur.IsKeyDown(Keys.RightControl))) | ||
|
|
212 | { | ||
|
|
213 | Logging.Info("Quitting"); | ||
|
205 | SendMessage(new QuitGameMessage{}); |
|
214 | SendMessage(new QuitGameMessage{}); |
|
206 | } |
|
215 | } |
|
207 | #endregion misc_keys |
|
216 | #endregion misc_keys |
@@ -499,11 +499,10 | |||||
|
499 | sound.Play(volume, pitch, pan); |
|
499 | sound.Play(volume, pitch, pan); |
|
500 | } |
|
500 | } |
|
501 | #endif |
|
501 | #endif |
|
502 | if (keyboardCur.IsKeyDown(Keys.V) && keyboardPrev.IsKeyUp(Keys.V)) |
|
502 | // if (keyboardCur.IsKeyDown(Keys.V) && keyboardPrev.IsKeyUp(Keys.V)) |
|
503 | { |
|
503 | // { |
|
504 | // debugWindow.swap(); |
|
504 | // debugWindow.setMonoFont(debugWindow.addFont("Roboto", 25, false)); |
|
505 | debugWindow.setMonoFont(debugWindow.addFont("Roboto", 25, false)); |
|
505 | // } |
|
506 | } |
|
||
|
507 | #endregion misc_keys |
|
506 | #endregion misc_keys |
|
508 | #endregion input |
|
507 | #endregion input |
|
509 |
|
508 |
You need to be logged in to leave comments.
Login now