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
Detecting Xbox 360 Controller Button Presses (Xbox 360, Windows)
Determining If an Xbox 360 Controller Is Disconnected (Xbox 360, Windows)
Concepts
Overview of User Input and Input Devices
Reference
GamePadState Structure
GamePadState Members
Microsoft.Xna.Framework.Input Namespace
Platforms
Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone