summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/ultratnk.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/ultratnk.h')
-rw-r--r--src/mame/includes/ultratnk.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mame/includes/ultratnk.h b/src/mame/includes/ultratnk.h
index 8c2943e1f58..49078cba7ad 100644
--- a/src/mame/includes/ultratnk.h
+++ b/src/mame/includes/ultratnk.h
@@ -27,11 +27,12 @@ public:
m_gfxdecode(*this, "gfxdecode"),
m_screen(*this, "screen"),
m_palette(*this, "palette"),
- m_videoram(*this, "videoram")
+ m_videoram(*this, "videoram"),
+ m_joy(*this, "JOY-%c", 'W')
{ }
- DECLARE_CUSTOM_INPUT_MEMBER(get_collision);
- DECLARE_CUSTOM_INPUT_MEMBER(get_joystick);
+ template <int N> DECLARE_READ_LINE_MEMBER(collision_flipflop_r);
+ template <int N> DECLARE_READ_LINE_MEMBER(joystick_r);
void ultratnk(machine_config &config);
protected:
@@ -75,6 +76,8 @@ protected:
required_shared_ptr<uint8_t> m_videoram;
+ required_ioport_array<4> m_joy;
+
int m_da_latch;
int m_collision[4];
tilemap_t* m_playfield;