From 7f92ee8016b4785a1e4408a7fb1d643e4a5d40d8 Mon Sep 17 00:00:00 2001 From: enikland2 Date: Sat, 30 Mar 2019 12:48:18 -0300 Subject: nes: Replace VDP bitmap access with screen().pixel() for lightgun emulation (#4665) --- src/mame/machine/nes.cpp | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/mame/machine/nes.cpp') diff --git a/src/mame/machine/nes.cpp b/src/mame/machine/nes.cpp index 7b15384293e..d46c0ed286d 100644 --- a/src/mame/machine/nes.cpp +++ b/src/mame/machine/nes.cpp @@ -190,16 +190,3 @@ void nes_state::init_famicom() space.install_write_handler(0x4016, 0x4016, write8_delegate(FUNC(nes_state::fc_in0_w), this)); space.install_read_handler(0x4017, 0x4017, read8_delegate(FUNC(nes_state::fc_in1_r), this)); } - -NESCTRL_BRIGHTPIXEL_CB(nes_state::bright_pixel) -{ - // get the pixel at the gun position - rgb_t pix = m_ppu->get_pixel(x, y); - - // check if the cursor is over a bright pixel - // FIXME: still a gross hack - if (pix.r() == 0xff && pix.b() == 0xff && pix.g() > 0x90) - return true; - else - return false; -} -- cgit v1.2.3