void Latch(IController c) { latchedvalue = SerialUtil.Latch(Buttons, c); // set signatures latchedvalue &= ~0xff0000; if (RightPort) // signatures { latchedvalue |= 0x040000; } else { latchedvalue |= 0x080000; } }
void Latch(IController c) { latched3 = SerialUtil.Latch(D3Buttons, c); latched4 = SerialUtil.Latch(D4Buttons, c); }
// reset is not edge triggered; so long as it's high, the latch is continuously reloading // so we need to latch in two places: // 1. when OUT0 goes low, to get the last set // 2. wheneven reading with OUT0 high, since new data for controller is always loading void Latch(IController c) { latchedvalue = SerialUtil.Latch(FamicomP2Hack ? FamicomP2Buttons : Buttons, c); }
// reset is not edge triggered; so long as it's high, the latch is continuously reloading // so we need to latch in two places: // 1. when OUT0 goes low, to get the last set // 2. wheneven reading with OUT0 high, since new data for controller is always loading void Latch(IController c) { latchedvalue = SerialUtil.Latch(Buttons, c); }
void Latch(IController c) { latchedp1 = SerialUtil.Latch(P1Buttons, c); latchedp2 = SerialUtil.Latch(P2Buttons, c); }
private void Latch(IController c) { _latched3 = SerialUtil.Latch(D3Buttons, c); _latched4 = SerialUtil.Latch(D4Buttons, c); }
// reset is not edge triggered; so long as it's high, the latch is continuously reloading // so we need to latch in two places: // 1. when OUT0 goes low, to get the last set // 2. when even reading with OUT0 high, since new data for controller is always loading private void Latch(IController c) { _latchedValue = SerialUtil.Latch(Buttons, c); }
// reset is not edge triggered; so long as it's high, the latch is continuously reloading // so we need to latch in two places: // 1. when OUT0 goes low, to get the last set // 2. when even reading with OUT0 high, since new data for controller is always loading private void Latch(IController c) { _latchedValue = SerialUtil.Latch(_famicomP2Hack ? FamicomP2Buttons : Buttons, c); }
private void Latch(IController c) { _latchedP1 = SerialUtil.Latch(P1Buttons, c); _latchedP2 = SerialUtil.Latch(P2Buttons, c); }