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); }
void InitializeGameController() { _gc = new GamePads(); }