summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/nes.cpp
diff options
context:
space:
mode:
author enikland2 <enikland@gmx.com>2019-03-30 12:48:18 -0300
committer R. Belmont <rb6502@users.noreply.github.com>2019-03-30 11:48:18 -0400
commit7f92ee8016b4785a1e4408a7fb1d643e4a5d40d8 (patch)
treeff5f82393ed8ae1af3588e64c9b3144d850f4380 /src/mame/machine/nes.cpp
parent06176a02a528fa92c068bdfa94d2d717ee4f5454 (diff)
nes: Replace VDP bitmap access with screen().pixel() for lightgun emulation (#4665)
Diffstat (limited to 'src/mame/machine/nes.cpp')
-rw-r--r--src/mame/machine/nes.cpp13
1 files changed, 0 insertions, 13 deletions
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;
-}