void gc_ThumbStickStateUpdated(object sender, ThumbStickStateEventArgs args) { OnThumbSticksUpdated(args.ControllerNum, args.ThumbStick, args.XValue, args.YValue); }
void gc_ThumbStickStateUpdated(object sender, ThumbStickStateEventArgs args) { if (ShowOutput) { string coords = string.Format("x:{0}, y:{1}", args.XValue, args.YValue); switch (args.ThumbStick) { case GameController.ThumbSticks.Left: SetLeftStickValue(coords); break; case GameController.ThumbSticks.Right: SetRightStickValue(coords); break; } } }