コード例 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((LeftJoyCon != null ? LeftJoyCon.GetHashCode() : 0) * 397) ^
                (RightJoyCon != null ? RightJoyCon.GetHashCode() : 0));
     }
 }
コード例 #2
0
        public void Rumble(JoyConType type, JoyConRumbleInfo rumbleInfo)
        {
            switch (type)
            {
            case JoyConType.Left:
                LeftJoyCon.Rumble(rumbleInfo);
                break;

            case JoyConType.Right:
                RightJoyCon.Rumble(rumbleInfo);
                break;

            default:
                throw new NotImplementedException();
            }
        }
コード例 #3
0
 public void Rumble(JoyConRumbleInfo rumbleInfo)
 {
     LeftJoyCon.Rumble(rumbleInfo);
     RightJoyCon.Rumble(rumbleInfo);
 }
コード例 #4
0
 public void Rumble(JoyConRumble rumble)
 {
     LeftJoyCon.Rumble(rumble);
     RightJoyCon.Rumble(rumble);
 }
コード例 #5
0
 public void SetupLeds(JoyConSingleLed firstLed, JoyConSingleLed secondLed, JoyConSingleLed thirdLed,
                       JoyConSingleLed fourthLed)
 {
     LeftJoyCon.SetupLeds(firstLed, secondLed, thirdLed, fourthLed);
     RightJoyCon.SetupLeds(firstLed, secondLed, thirdLed, fourthLed);
 }
コード例 #6
0
 public void SetupLeds(JoyConLed led)
 {
     LeftJoyCon.SetupLeds(led);
     RightJoyCon.SetupLeds(led);
 }
コード例 #7
0
 public void Unacquire()
 {
     LeftJoyCon.Unacquire();
     RightJoyCon.Unacquire();
 }
コード例 #8
0
 public void Acquire(JoyConPlayer player)
 {
     LeftJoyCon.Acquire(player);
     RightJoyCon.Acquire(player);
 }
コード例 #9
0
 public void Dispose()
 {
     LeftJoyCon.Dispose();
     RightJoyCon.Dispose();
 }