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

Function UpdateVirtualBoyData

src/drivers/win/input.cpp:456–466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454static uint32 virtualboybuf[2];
455
456static uint32 UpdateVirtualBoyData(int w)
457{
458 uint32 r=0;
459 ButtConfig *virtualboytsc=virtualboysc[w];
460 int x;
461
462 for(x=0;x<14;x++)
463 if(DTestButton(&virtualboytsc[x])) r|=1<<x;
464
465 return r;
466}
467
468// Holds the button configurations for the LCD Compatible Zapper.
469// Two collections of two buttons.

Callers 1

FCEUD_UpdateInputFunction · 0.85

Calls 1

DTestButtonFunction · 0.70

Tested by

no test coverage detected