diff options
author | mahlemiut <mahlemiut@users.noreply.github.com> | 2014-02-01 02:48:26 +0000 |
---|---|---|
committer | mahlemiut <mahlemiut@users.noreply.github.com> | 2014-02-01 02:48:26 +0000 |
commit | 523235ff0f8d913ffe8645680fadcfb5a65a3ac3 (patch) | |
tree | d9ad434abc6349a204d3de7e2b0a7594ac653e61 /src/mess/machine/amstrad.c | |
parent | 4376c828fd74315f3981a05f511417d1a47e0a04 (diff) |
(MESS) amstrad: added the option of having nothing attached to the joystick ports. Mostly to avoid the cursor keys and the default joystick inputs clashing. (no whatsnew)
Diffstat (limited to 'src/mess/machine/amstrad.c')
-rw-r--r-- | src/mess/machine/amstrad.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mess/machine/amstrad.c b/src/mess/machine/amstrad.c index 909420a58bd..9bc7cb35616 100644 --- a/src/mess/machine/amstrad.c +++ b/src/mess/machine/amstrad.c @@ -2668,10 +2668,14 @@ READ8_MEMBER(amstrad_state::amstrad_psg_porta_read) if (keyrow[m_ppi_port_outputs[amstrad_ppi_PortC] & 0x0F]) { - if((m_io_ctrltype->read_safe(0) == 1) && (m_ppi_port_outputs[amstrad_ppi_PortC] & 0x0F) == 9) // joystick 1 + if((m_io_ctrltype->read_safe(0) == 1) && (m_ppi_port_outputs[amstrad_ppi_PortC] & 0x0F) == 9) { return m_amx_mouse_data; } + if((m_io_ctrltype->read_safe(0) == 2) && (m_ppi_port_outputs[amstrad_ppi_PortC] & 0x0F) == 9) + { + return (keyrow[m_ppi_port_outputs[amstrad_ppi_PortC] & 0x0F]->read_safe(0) & 0x80) | 0x7f; + } return keyrow[m_ppi_port_outputs[amstrad_ppi_PortC] & 0x0F]->read_safe(0) & 0xFF; } return 0xFF; |