I'd love a keyboard shortcut for capturing screenshots in the simulator. Sometimes it's tricky to catch the action when my hands are on the keyboard controls and I have to hit a fairly small button with the mouse. Even adding a dedicated menu item (e.g. "Playdate > Capture Screenshot") would do the trick, since I could then define my own shortcut for it.
2 Likes
I agree this would be a nice feature. In the past, I've implemented this myself using the following code (in Lua):
function playdate.keyPressed(key)
if key == "s" then
local image = playdate.graphics.getDisplayImage()
local path = "~/Desktop/"
local filename = "Screenshot-" .. playdate.getSecondsSinceEpoch() .. ".png"
playdate.simulator.writeToFile(image, path .. filename)
end
end
3 Likes