Previous 199869 Revisions Next

r23723 Saturday 15th June, 2013 at 16:58:53 UTC by Fabio Priuli
(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...
[src/mess/includes]nes.h
[src/mess/machine]nes.c

trunk/src/mess/machine/nes.c
r23722r23723
4343   else if (m_cartslot)
4444      m_cartslot->pcb_reset();
4545
46   /* Reset the serial input ports */
47   m_in_0.shift = 0;
48   m_in_1.shift = 0;
49
5046   m_maincpu->reset();
5147
5248   memset(m_pad_latch, 0, sizeof(m_pad_latch));
trunk/src/mess/includes/nes.h
r23722r23723
461461         m_cassette(*this, "tape")
462462      { }
463463
464   /* input_related - this part has to be cleaned up (e.g. in_2 and in_3 are not really necessary here...) */
465   nes_input m_in_0, m_in_1, m_in_2, m_in_3;
466   UINT8 m_fck_scan, m_fck_mode;
467
468464   /* video-related */
469465   int m_last_frame_flip;
470466
r23722r23723
559555   UINT8 m_zapper_latch[2][3];
560556   UINT8 m_paddle_latch, m_paddle_btn_latch;
561557   UINT8 m_mjpanel_latch;
558   UINT8 m_fck_scan, m_fck_mode;
562559
563560protected:
564561   virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);

Previous 199869 Revisions Next


© 1997-2024 The MAME Team