summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/firetrk.h
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2016-08-03 18:01:49 -0400
committer AJR <ajrhacker@users.noreply.github.com>2016-08-05 19:05:01 -0400
commitda754c80782425a4c63d2da0a2635ca4fbaf16a5 (patch)
tree22e55dc4ec81a097a24346d2d735ad8348315933 /src/mame/includes/firetrk.h
parent1317019974231191a0a42d732ef9b603dcd00896 (diff)
Devfind revision phase 2 (nw)
- Eliminate read_safe as a global function and make it a method of optional_ioport (and required_ioport, for which it makes less sense). - New constructor for optional_ioport_array and required_ioport_array using std::initializer_list to specify tag list - Remove pointer/reference conversion operators for required_ioport and optional_ioport. Explicit getters like found() and target() are now required when dereferencing isn't wanted. Many drivers have been changed to use required_ioport_array and optional_ioport_array to make this cleaner. - Update numerous drivers that were using read_safe to use I/O port finders generally. Port names have been kept the same as far as possible to avoid breaking saves.(Some of the optional finders should probably be required.) - Give edfbl and monkelf their own memory maps so hacky input reading routines can be removed. - Clean up some legacy static handlers in amiga.cpp and cubo.cpp.
Diffstat (limited to 'src/mame/includes/firetrk.h')
-rw-r--r--src/mame/includes/firetrk.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/mame/includes/firetrk.h b/src/mame/includes/firetrk.h
index f299184a87d..317f4648c77 100644
--- a/src/mame/includes/firetrk.h
+++ b/src/mame/includes/firetrk.h
@@ -52,7 +52,12 @@ public:
m_drone_rot(*this, "drone_rot"),
m_gfxdecode(*this, "gfxdecode"),
m_screen(*this, "screen"),
- m_palette(*this, "palette")
+ m_palette(*this, "palette"),
+ m_bit_0(*this, "BIT_0"),
+ m_bit_6(*this, "BIT_6"),
+ m_bit_7(*this, "BIT_7"),
+ m_dips(*this, {"DIP_0", "DIP_1"}),
+ m_steer(*this, {"STEER_1", "STEER_2"})
{ }
required_device<cpu_device> m_maincpu;
@@ -71,6 +76,12 @@ public:
required_device<screen_device> m_screen;
required_device<palette_device> m_palette;
+ optional_ioport m_bit_0;
+ optional_ioport m_bit_6;
+ optional_ioport m_bit_7;
+ required_ioport_array<2> m_dips;
+ optional_ioport_array<2> m_steer;
+
UINT8 m_in_service_mode;
UINT32 m_dial[2];
UINT8 m_steer_dir[2];