mirror of
https://github.com/rodamaral/lsnes.git
synced 2025-04-02 10:42:15 -04:00
25 lines
361 B
C++
Executable file
25 lines
361 B
C++
Executable file
struct Input {
|
|
enum class Device : unsigned {
|
|
None,
|
|
Joypad,
|
|
};
|
|
|
|
void latch(bool data);
|
|
bool data(bool port);
|
|
void connect(bool port, Device device);
|
|
|
|
void power();
|
|
void reset();
|
|
|
|
void serialize(serializer &s);
|
|
|
|
private:
|
|
Device port1;
|
|
Device port2;
|
|
|
|
bool latchdata;
|
|
unsigned counter1;
|
|
unsigned counter2;
|
|
};
|
|
|
|
extern Input input;
|