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