GamePadState.PacketNumber Property
Gets the packet number associated with this state.
Namespace: Microsoft.Xna.Framework.Input
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public int PacketNumber { get; }
Property Value
The packet number associated with this state.
Remarks
You can use PacketNumber to determine whether input state has changed. If the value of PacketNumber remains the same between two sequential calls to GetState, then there has been no change in input.
See Also
Tasks
How to: Detect Whether a Controller Button Is Pressed
How to: Detect Whether a Controller Is Disconnected
Concepts
Reference
GamePadState Structure
GamePadState Members
Microsoft.Xna.Framework.Input Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista