screenshots.adoc 857 B

123456789101112131415161718192021222324
  1. = Taking Screenshots
  2. :author:
  3. :revnumber:
  4. :revdate: 2016/03/17 20:48
  5. :relfileprefix: ../../
  6. :imagesdir: ../..
  7. ifdef::env-github,env-browser[:outfilesuffix: .adoc]
  8. The com.jme3.app.state.ScreenshotAppState enables your users to take screenshots of the running game.
  9. You activate this feature as follows in your simpleInitApp() method:
  10. [source,java]
  11. ----
  12. ScreenshotAppState screenShotState = new ScreenshotAppState();
  13. this.stateManager.attach(screenShotState);
  14. ----
  15. The default screenshot key is KeyInput.KEY_SYSRQ, alos 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).
  16. The screenshot is saved to the user directory.