mirror of
https://github.com/libretro/RetroArch
synced 2025-04-15 23:42:30 +00:00
An unfortunate hack for cores that translate the keyboard input device into keydown/keyup events without saving that in the savestate. We simply replay the previous frame's input before loading the rewound frame's state, to assure that both the state and the keyup/down state are correct. Ideally, cores would save this as part of the state, but it's a bit proximal and a fairly significant change for those that use it, so it's easier to fix in netplay.