--- nono/vm/sysport.h 2026/04/29 17:04:50 1.1.1.6 +++ nono/vm/sysport.h 2026/04/29 17:04:53 1.1.1.7 @@ -22,6 +22,7 @@ struct SYSPORT int contrast; int rom_wait; // 設定値。ウェイトにする時には +2 する int ram_wait; // 設定値。 + bool key_ctrl; }; class SysportDevice @@ -37,6 +38,11 @@ class SysportDevice void ResetHard() override; + // KEYCTRL の状態を取得する + bool GetKeyCtrl() const { + return sysport.key_ctrl; + } + protected: // BusIO インタフェース static const uint32 NPORT = 8;