AxibugEmuOnline/References/VirtuaNESex_src_191105/NES/PadEX/EXPAD_HyperShot.cpp
2024-08-05 17:58:53 +08:00

20 lines
465 B
C++

//////////////////////////////////////////////////////////////////////////
// Hyper Shot //
//////////////////////////////////////////////////////////////////////////
void EXPAD_HyperShot::Reset()
{
shotbits = 0;
}
void EXPAD_HyperShot::Strobe()
{
shotbits = 0;
shotbits |= (nes->pad->pad1bit&0x03)<<1;
shotbits |= (nes->pad->pad2bit&0x03)<<3;
}
BYTE EXPAD_HyperShot::Read4017()
{
return shotbits;
}