Click or drag to resize
SpriteBaseSetInputState Method
Turns on or off the specified input on this sprite.

Namespace: (Default Namespace)
Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax
C#
public virtual void SetInputState(
	SpriteBaseInputBits Input,
	bool Press
)

Parameters

Input
Type: (Default Namespace)SpriteBaseInputBits
Indicates a particular input to be affected.
Press
Type: SystemBoolean
True if the input should be turned on or "pressed", False if the input should be turned off or "released".
Remarks
Although this function can be used to set a sprite's inputs based on rules, MapPlayerToInputs(Int32) is the recommended means for setting inputs on a sprite. SetInputState(SpriteBaseInputBits, Boolean) does not affect oldinputs, so if you want to use this function with the InitialOnly feature of IsInputPressed(SpriteBaseInputBits, Boolean), you will have to manage oldinputs manually.
See Also