示例#1
0
 public virtual void OnInstalled(object sender, GameControllerEventArgs args)
 {
     execContext.Post((a) => Installed?.Invoke(sender, args), null);
 }
 private void Controller_Starting(object sender, GameControllerEventArgs e)
 {
     Starting?.Invoke(this, e);
 }
 private void Controller_Stopped(object sender, GameControllerEventArgs e)
 {
     Stopped?.Invoke(this, e);
 }
 private void Controller_Installed(object sender, GameControllerEventArgs e)
 {
     Installed?.Invoke(this, e);
 }
示例#5
0
 public virtual void OnStopped(object sender, GameControllerEventArgs args)
 {
     IsGameRunning = false;
     execContext.Post((a) => Stopped?.Invoke(sender, args), null);
 }
示例#6
0
 public virtual void OnStarting(object sender, GameControllerEventArgs args)
 {
     execContext.Post((a) => Starting?.Invoke(sender, args), null);
 }