AxibugEmuOnline/virtuanessrc097-master/NES/PadEX/EXPAD_HyperShot.cpp

20 lines
970 B
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//////////////////////////////////////////////////////////////////////////
// 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;
}