예제 #1
0
 private void OnButtonStateChanged(object sender, ButtonStateEventArgs args)
 {
     if (ButtonStateChanged != null) ButtonStateChanged(sender, args);
 }
예제 #2
0
 void gc_ButtonStateChanged(object sender, ButtonStateEventArgs args)
 {
     if (ShowOutput && _currentController == args.ControllerNum)
     {
         string key = " down";
         if (!args.Pressed) key = " up";
         AddButtonOutput(args.Button + key);
     }
 }