lsnes/nes/input/input.hpp
2013-05-03 17:47:34 +03:00

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;