screenshots.adoc 751 B

1234567891011121314151617181920
  1. = Taking Screenshots
  2. :revnumber: 2.0
  3. :revdate: 2020/07/25
  4. The com.jme3.app.state.ScreenshotAppState enables your users to take screenshots of the running game.
  5. You activate this feature as follows in your simpleInitApp() method:
  6. [source,java]
  7. ----
  8. ScreenshotAppState screenShotState = new ScreenshotAppState();
  9. this.stateManager.attach(screenShotState);
  10. ----
  11. The default screenshot key is KeyInput.KEY_SYSRQ, also known as "`System Request / Print Screen`" key. On Mac keyboards, this key does not exist, so on Mac +++<abbr title="Operating System">OS</abbr>+++ you take screenshots using Command+Shift+3 (fullscreen) or Command+Shift+4 (windowed: press space to select a window and then click).
  12. The screenshot is saved to the user directory.