bsnes/higan/sfc/controller/superscope/superscope.hpp

28 lines
405 B
C++

struct SuperScope : Controller {
enum : uint {
X, Y, Trigger, Cursor, Turbo, Pause,
};
SuperScope(bool port);
auto enter() -> void;
auto data() -> uint2;
auto latch(bool data) -> void;
//private:
bool latched;
unsigned counter;
signed x, y;
bool trigger;
bool cursor;
bool turbo;
bool pause;
bool offscreen;
bool turbolock;
bool triggerlock;
bool pauselock;
};