Click or drag to resize
DigitalRuneIInputServiceSetLogicalPlayer Method
Assigns a game controller to a player. (Not available in Silverlight.)

Namespace: DigitalRune.Game.Input
Assembly: DigitalRune.Game.Input (in DigitalRune.Game.Input.dll) Version: 1.8.0.0 (1.8.0.14467)
Syntax
void SetLogicalPlayer(
	LogicalPlayerIndex player,
	Nullable<PlayerIndex> controller
)

Parameters

player
Type: DigitalRune.Game.InputLogicalPlayerIndex
The LogicalPlayerIndex that identifies the player.
controller
Type: SystemNullablePlayerIndex
The PlayerIndex that identifies the game controller. (Can be to remove the current assignment.)
Exceptions
ExceptionCondition
ArgumentExceptionplayer is invalid.
See Also