Example #1
0
        public static Vector2 ThumbStick(ThumbStickType thumbType, int playerId = 0)
        {
            if (!Enabled)
            {
                return(Vector2.Zero);
            }

            var padState = _player[playerId].PadState;

            if (!padState.IsConnected)
            {
                return(Vector2.Zero);
            }
            return(thumbType == ThumbStickType.Left ? padState.ThumbSticks.Left : padState.ThumbSticks.Right);
        }
Example #2
0
 public static float ThumbStickY(ThumbStickType thumbType, int playerId = 0)
 {
     return(ThumbStick(thumbType, playerId).Y);
 }