Example #1
0
 void Latch(IController c)
 {
     latchedvalue = SerialUtil.Latch(Buttons, c);
     // set signatures
     latchedvalue &= ~0xff0000;
     if (RightPort)             // signatures
     {
         latchedvalue |= 0x040000;
     }
     else
     {
         latchedvalue |= 0x080000;
     }
 }
Example #2
0
 void Latch(IController c)
 {
     latched3 = SerialUtil.Latch(D3Buttons, c);
     latched4 = SerialUtil.Latch(D4Buttons, c);
 }
Example #3
0
        // 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);
        }
Example #4
0
        // 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);
        }
Example #5
0
 void Latch(IController c)
 {
     latchedp1 = SerialUtil.Latch(P1Buttons, c);
     latchedp2 = SerialUtil.Latch(P2Buttons, c);
 }
Example #6
0
 private void Latch(IController c)
 {
     _latched3 = SerialUtil.Latch(D3Buttons, c);
     _latched4 = SerialUtil.Latch(D4Buttons, c);
 }
Example #7
0
        // 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);
        }
Example #8
0
        // 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);
        }
Example #9
0
 private void Latch(IController c)
 {
     _latchedP1 = SerialUtil.Latch(P1Buttons, c);
     _latchedP2 = SerialUtil.Latch(P2Buttons, c);
 }