diff options
Diffstat (limited to 'src/devices/bus/nes_ctrl/ctrl.h')
-rw-r--r-- | src/devices/bus/nes_ctrl/ctrl.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/devices/bus/nes_ctrl/ctrl.h b/src/devices/bus/nes_ctrl/ctrl.h index 27579717878..0acefbf4654 100644 --- a/src/devices/bus/nes_ctrl/ctrl.h +++ b/src/devices/bus/nes_ctrl/ctrl.h @@ -67,10 +67,16 @@ public: uint8_t read_bit34(); uint8_t read_exp(offs_t offset); void write(uint8_t data); + template <typename T> void set_screen_tag(T &&tag) { m_screen.set_tag(std::forward<T>(tag)); } + + // for peripherals that interact with the machine's screen + required_device<screen_device> m_screen; protected: // device-level overrides virtual void device_start() override; + + // devices device_nes_control_port_interface *m_device; }; |