]> git.seodisparate.com - mpd_info_screen/commitdiff
Also let "Q" quit application
authorStephen Seo <seo.disparate@gmail.com>
Thu, 16 Sep 2021 04:56:06 +0000 (13:56 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Thu, 16 Sep 2021 04:56:06 +0000 (13:56 +0900)
src/main.rs

index 28752ee0574707082a065cd95c20ed3f43c14827..6bf00ebab55a01dea5a0057a3c77cf4fde1d3ac7 100644 (file)
@@ -441,7 +441,7 @@ async fn main() -> Result<(), String> {
         let dt: f64 = get_frame_time() as f64;
         clear_background(BLACK);
 
-        if is_key_pressed(KeyCode::Escape) {
+        if is_key_pressed(KeyCode::Escape) || is_key_pressed(KeyCode::Q) {
             break 'macroquad_main;
         }