SpriteBase.IsInputPressed Method |
Determine if the specified input is being pressed for this sprite.
Namespace: (Default Namespace)Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntaxpublic virtual bool IsInputPressed(
SpriteBase. InputBits Input,
bool InitialOnly
)
Parameters
- Input
- Type: (Default Namespace).SpriteBase.InputBits
Which of thes sprite's inputs should be checked - InitialOnly
- Type: System.Boolean
If this is true, the result will only be true if the input has just been pressed and was not pressed before.
Return Value
Type:
BooleanIf
InitialOnly is set, true only when the specified input on this
sprite has just been turned on or pressed, otherwise true if the input is currently on or
"pressed" regardless of the previous state of the input.
Remarks
See Also