Previous 15994 Revisions Next

r14836 Sunday 1st April, 2012 at 16:35:59 UTC by Curt Coder
[ABC1600] Modernizification. (nw)
[src/mess/machine]abc99.c abc99.h

src/mess/machine/abc99.c
r14835r14836
233233
234234
235235//-------------------------------------------------
236//  INPUT_PORTS( abc99 )
236//  INPUT_CHANGED_MEMBER( keyboard_reset )
237237//-------------------------------------------------
238238
239INPUT_CHANGED( abc99_device::keyboard_reset )
239INPUT_CHANGED_MEMBER( abc99_device::keyboard_reset )
240240{
241    abc99_device *keyboard = static_cast<abc99_device *>(field.machine().device(ABC99_TAG));
242
243   device_set_input_line(keyboard->m_mousecpu, INPUT_LINE_RESET, newval ? CLEAR_LINE : ASSERT_LINE);
241    device_set_input_line(m_mousecpu, INPUT_LINE_RESET, newval ? CLEAR_LINE : ASSERT_LINE);
244242}
245243
246244
r14835r14836
435433   PORT_BIT( 0xff, 0x00, IPT_MOUSE_Y ) PORT_SENSITIVITY(100) PORT_KEYDELTA(5) PORT_MINMAX(0, 255) PORT_PLAYER(1)
436434
437435   PORT_START("J4")
438   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_NAME("Keyboard Reset") PORT_CHANGED(abc99_device::keyboard_reset, 0)
436   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_NAME("Keyboard Reset") PORT_CHANGED_MEMBER(DEVICE_SELF, abc99_device, keyboard_reset, 0)
439437INPUT_PORTS_END
440438
441439
src/mess/machine/abc99.h
r14835r14836
5656   virtual machine_config_constructor device_mconfig_additions() const;
5757   virtual ioport_constructor device_input_ports() const;
5858
59   static INPUT_CHANGED( keyboard_reset );
59   DECLARE_INPUT_CHANGED_MEMBER( keyboard_reset );
6060
6161   DECLARE_WRITE8_MEMBER( z2_led_w );
6262   DECLARE_WRITE8_MEMBER( z2_p1_w );

Previous 15994 Revisions Next


© 1998-2018 The MESS Team