Beispiel #1
0
 void gc_TriggerStateUpdated(object sender, TriggerStateEventArgs args)
 {
     OnTriggerStateUpdated(args.ControllerNum, args.Trigger, args.TriggerValue);
 }
 void gc_TriggerStateUpdated(object sender, TriggerStateEventArgs args)
 {
     if (ShowOutput)
     {
         string val = args.TriggerValue.ToString();
         switch (args.Trigger)
         {
             case GameController.Triggers.Left:
                 SetLeftTriggerValue(val);
                 break;
             case GameController.Triggers.Right:
                 SetRightTriggerValue(val);
                 break;
         }
     }
 }