For frontends implementing input recording, savestates can store input data and an associated input file, allowing the recovery of an input sequence that was previously overwritten
Frontends can store an image of the framebuffer, and present that image when they load a savestate.
This might be useful for several things:
Proposed API: