diff options
author | 2019-07-11 23:42:15 +0200 | |
---|---|---|
committer | 2019-07-11 23:42:15 +0200 | |
commit | 9214a78d705f3b83c3ea45534cf1d8355c1cb9c5 (patch) | |
tree | 5b73fda7b339c0c1dcb111850fb66930602ae5d7 /src/devices/bus/nes_ctrl/ctrl.h | |
parent | 4faa4fb12f04143f2a7ad6d17a3489c69da2960b (diff) | |
parent | cc5d4b93059522122cb534e599b92f8e8f51225c (diff) |
Merge branch 'master' of https://github.com/mamedev/mame
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; }; |