bsnes/higan/sfc/controller/gamepad/gamepad.hpp

19 lines
324 B
C++

struct Gamepad : Controller {
enum : uint {
Up, Down, Left, Right, B, A, Y, X, L, R, Select, Start,
};
Gamepad(bool port);
auto data() -> uint2;
auto latch(bool data) -> void;
private:
bool latched;
uint counter;
boolean b, y, select, start;
boolean up, down, left, right;
boolean a, x, l, r;
};