Jaa


RawGameController.FromGameController(IGameController) Method

Definition

Returns the given game controller as a raw game controller.

public:
 static RawGameController ^ FromGameController(IGameController ^ gameController);
 static RawGameController FromGameController(IGameController const& gameController);
public static RawGameController FromGameController(IGameController gameController);
function fromGameController(gameController)
Public Shared Function FromGameController (gameController As IGameController) As RawGameController

Parameters

gameController
IGameController

The game controller to be returned as a raw game controller.

Returns

The raw game controller that was returned from the given game controller.

Remarks

This method checks if the provided game controller has a raw game controller implementation, and if so, it returns that implementation. You might use this method if you want to first get the controller as a RawGameController, and then see if it can be used as another type of controller, such as a Gamepad—if so, you can use a default control scheme for that controller type, otherwise you can let the player do their own input mapping.

Applies to

See also