mirror of
https://github.com/rodamaral/lsnes.git
synced 2025-04-02 10:42:15 -04:00
When savestating, save the controller state and restore it upon loadstate. Prevents libsnes from mixing up buttons.
9 lines
174 B
C++
Executable file
9 lines
174 B
C++
Executable file
struct Gamepad : Controller {
|
|
uint2 data();
|
|
void latch(bool data);
|
|
Gamepad(bool port);
|
|
void serialize(serializer& s);
|
|
private:
|
|
bool latched;
|
|
unsigned counter;
|
|
};
|