fromGameController static method

Gamepad fromGameController(
  1. IGameController gameController
)

Implementation

static Gamepad fromGameController(IGameController gameController) {
  final activationFactory =
      CreateActivationFactory(_className, IID_IGamepadStatics2);

  try {
    return IGamepadStatics2.fromRawPointer(activationFactory)
        .fromGameController(gameController);
  } finally {
    free(activationFactory);
  }
}