public static void Update()
 {
     if (!LongEventHandler.ShouldWaitForEvent && KeyBindingDefOf.TakeScreenshot.JustPressed)
     {
         ScreenshotTaker.TakeShot();
     }
 }
 public static void Update()
 {
     if (!LongEventHandler.ShouldWaitForEvent)
     {
         if (KeyBindingDefOf.TakeScreenshot.JustPressed || ScreenshotTaker.takeScreenshot)
         {
             ScreenshotTaker.TakeShot();
             ScreenshotTaker.takeScreenshot = false;
         }
     }
 }