Click or drag to resize
SpriteBaseMapPlayerToInputs Method
Associate the state of the input device for the specified player with the inputs on this sprite.

Namespace: (Default Namespace)
Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax
C#
public virtual void MapPlayerToInputs(
	int PlayerNumber
)

Parameters

PlayerNumber
Type: SystemInt32
Player number 1 through 4. The number must not exceed the maximum number of players specified in the project properties and stored in MaxPlayers.
Remarks

Before the inputs are mapped from the player's input device to the sprite, the existing inputs are copied from inputs to oldinputs so other rules will be able to determine which inputs were pressed before.

The input device is defined by the player at runtime, and may come from a joystick, gamepad or keyboard.

See Also