bsnes/higan/md/controller/gamepad/gamepad.hpp

14 lines
250 B
C++

struct Gamepad : Controller {
enum : uint {
Up, Down, Left, Right, A, B, C, X, Y, Z, Start,
};
Gamepad(uint port);
auto readData() -> uint8 override;
auto writeData(uint8 data) -> void override;
boolean select;
boolean latch;
};