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