MCPcopy Create free account
hub / github.com/TASEmulators/fceux / UpdateLCDCompatibleZapperData

Function UpdateLCDCompatibleZapperData

src/drivers/win/input.cpp:486–496  ·  view source on GitHub ↗

Determines if the zapper trigger is pressed and/or if it's sensing light based on the button config and return the result as a two bit value.

Source from the content-addressed store, hash-verified

484// Determines if the zapper trigger is pressed and/or if it's sensing light based on the button config and return
485// the result as a two bit value.
486static uint32 UpdateLCDCompatibleZapperData(int w)
487{
488 uint32 r = 0;
489 ButtConfig* lcdcompzappertsc = lcdcompzappersc[w];
490 int x;
491
492 for (x = 0; x < 2; x++)
493 if (DTestButton(&lcdcompzappertsc[x])) r |= 1 << x;
494
495 return r;
496}
497
498static uint8 fkbkeys[0x48];
499static uint8 suborkbkeys[0x65];

Callers 1

FCEUD_UpdateInputFunction · 0.85

Calls 1

DTestButtonFunction · 0.70

Tested by

no test coverage detected