Previous 199869 Revisions Next

r33119 Saturday 1st November, 2014 at 18:13:35 UTC by Curt Coder
(MESS) x820: Fixed LOCK key. (nw)
[src/mess/machine]x820kb.c x820kb.h

trunk/src/mess/machine/x820kb.c
r241630r241631
1313
1414   TODO:
1515
16   - LOCK key
1716   - repeat
1817   - what are T0/T1/INT?
1918
r241630r241631
190189   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_J) PORT_CHAR('j') PORT_CHAR('J')
191190   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_K) PORT_CHAR('k') PORT_CHAR('K')
192191
193   PORT_START("YD")
194   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("LOCK") PORT_CODE(KEYCODE_Q) PORT_TOGGLE
195
196192   PORT_START("YF")
197   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Left SHIFT") PORT_CODE(KEYCODE_LSHIFT) PORT_CHAR(UCHAR_SHIFT_1)
198   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Right SHIFT") PORT_CODE(KEYCODE_RSHIFT)
193   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("LOCK") PORT_CODE(KEYCODE_CAPSLOCK) PORT_CHAR(UCHAR_MAMEKEY(CAPSLOCK)) PORT_TOGGLE
194   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_LSHIFT) PORT_CODE(KEYCODE_RSHIFT) PORT_CHAR(UCHAR_SHIFT_1)
199195   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Left CTRL") PORT_CODE(KEYCODE_LCONTROL) PORT_CHAR(UCHAR_MAMEKEY(LCONTROL))
200196   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED )
201197   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED )
r241630r241631
236232   m_y6(*this, "Y6"),
237233   m_y7(*this, "Y7"),
238234   m_y8(*this, "Y8"),
239   m_yd(*this, "YD"),
240235   m_yf(*this, "YF"),
241236   m_kbstb_cb(*this),
242237   m_p1(0xff),
trunk/src/mess/machine/x820kb.h
r241630r241631
7373   required_ioport m_y6;
7474   required_ioport m_y7;
7575   required_ioport m_y8;
76   required_ioport m_yd;
7776   required_ioport m_yf;
7877
7978   devcb_write_line   m_kbstb_cb;


Previous 199869 Revisions Next


© 1997-2024 The MAME Team