mirror of
https://github.com/holub/mame
synced 2025-10-05 16:50:57 +03:00
(MESS) nes.c: improvements and fixes to inputs [Fabio Priuli]
* simplified input reading * moved most Famicom controllers to the expansion port (still configurable in the Driver Config menu) because it is more accurate and because it allows to use both the FC keyboard and the controllers in BASIC games * fixed NES paddle emulation which broke some years ago * added FC paddle emulation, see Arkanoid and Chase HQ * added Hori Twin Adapter with correct P3 & P4 Famicom protocol, see e.g. four players games by Technos Japan just a cleanup and the whatsnew entry for previous changes...
This commit is contained in:
parent
1ebbe17e7f
commit
782df63b1d
@ -461,10 +461,6 @@ public:
|
||||
m_cassette(*this, "tape")
|
||||
{ }
|
||||
|
||||
/* input_related - this part has to be cleaned up (e.g. in_2 and in_3 are not really necessary here...) */
|
||||
nes_input m_in_0, m_in_1, m_in_2, m_in_3;
|
||||
UINT8 m_fck_scan, m_fck_mode;
|
||||
|
||||
/* video-related */
|
||||
int m_last_frame_flip;
|
||||
|
||||
@ -559,6 +555,7 @@ public:
|
||||
UINT8 m_zapper_latch[2][3];
|
||||
UINT8 m_paddle_latch, m_paddle_btn_latch;
|
||||
UINT8 m_mjpanel_latch;
|
||||
UINT8 m_fck_scan, m_fck_mode;
|
||||
|
||||
protected:
|
||||
virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
|
||||
|
@ -43,10 +43,6 @@ void nes_state::machine_reset()
|
||||
else if (m_cartslot)
|
||||
m_cartslot->pcb_reset();
|
||||
|
||||
/* Reset the serial input ports */
|
||||
m_in_0.shift = 0;
|
||||
m_in_1.shift = 0;
|
||||
|
||||
m_maincpu->reset();
|
||||
|
||||
memset(m_pad_latch, 0, sizeof(m_pad_latch));
|
||||
|
Loading…
Reference in New Issue
Block a user