Click or drag to resize
SpriteBase.SetInputState 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(
	SpriteBase. InputBits Input,
	bool Press
)

Parameters

Input
Type: (Default Namespace).SpriteBase.InputBits
Indicates a particular input to be affected.
Press
Type: System.Boolean
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(SpriteBase. InputBits, Boolean) does not affect oldinputs, so if you want to use this function with the InitialOnly feature of IsInputPressed(SpriteBase.InputBits, Boolean), you will have to manage oldinputs manually.
See Also