Exemple #1
0
 public void AttachEvents(GamePads gc)
 {
     gc.ButtonStateChanged += new GamePads.ButtonStateChangedHandler(gc_ButtonStateChanged);
     gc.ThumbStickStateUpdated += new GamePads.ThumbStickStateUpdatedHandler(gc_ThumbStickStateUpdated);
     gc.TriggerStateUpdated += new GamePads.TriggerStateUpdatedHandler(gc_TriggerStateUpdated);
     gc.ControllerDisconnected += new GamePads.ControllerDisconnectedHandler(gc_ControllerDisconnected);
 }
Exemple #2
0
 void InitializeGameController()
 {
     _gc = new GamePads();
 }