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

30 lines
422 B
C++

struct SuperScope : Controller {
enum : uint {
X, Y, Trigger, Cursor, Turbo, Pause,
};
SuperScope(bool port);
auto main() -> 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;
unsigned prev;
};