mirror of https://github.com/bsnes-emu/bsnes.git
19 lines
319 B
C++
19 lines
319 B
C++
struct Gamepad : Controller {
|
|
enum : uint {
|
|
B, Y, Select, Start, Up, Down, Left, Right, A, X, L, R,
|
|
};
|
|
|
|
Gamepad(bool port);
|
|
|
|
auto data() -> uint2;
|
|
auto latch(bool data) -> void;
|
|
|
|
private:
|
|
bool latched;
|
|
unsigned counter;
|
|
|
|
bool b, y, select, start;
|
|
bool up, down, left, right;
|
|
bool a, x, l, r;
|
|
};
|