> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# IGameInputReading::GetSequenceNumber

> IGameInputReading::GetSequenceNumber

# IGameInputReading::GetSequenceNumber

Retrieve the sequence number for the input reading.

## Syntax

```cpp theme={null}
uint64_t GetSequenceNumber(  
         GameInputKind inputKind  
)  
```

### Parameters

*inputKind*   \_In\_\
Type: [GameInputKind](/reference/input/gameinput/enums/gameinputkind)

The [GameInputKind](/reference/input/gameinput/enums/gameinputkind) to retrieve the sequence number for.\
While [GameInputKind](/reference/input/gameinput/enums/gameinputkind) is normally a flag type enum, you may only use one value for this parameter.

### Return value

Type: uint64\_t

This function is not yet implemented
Currently returns 0.

Once implemented, returns the sequence number of the input reading.

## Remarks

Each kind of input represented by [GameInputKind](/reference/input/gameinput/enums/gameinputkind) maintains its own sequence number which is only updated when that inputkind's state changes. This is important because one device may have multiple input kinds which it supports and therefore also has multiple input kind views which can be interpreted from its raw input. Two sequential readings from the same device may have the same sequence number on one input kind view of the raw data, and different sequence numbers for a different input kind's interpretation of the raw data. This would indicate that the game controller gave input of some particular kind and so only that sequence number was incremented.
This function can be used to tell whether or not a particular kind of input has changed from reading to reading. The sequence number can also be used to order and differentiate between readings in the event that two readings have the same timestamp.

## Requirements

**Header:** GameInput.h

**Library:** xgameruntime.lib

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

[Input API Overview](/build/core-features/common/input/overviews/input-overview)\
[IGameInputReading](/reference/input/gameinput/interfaces/igameinputreading/igameinputreading)\
[GameInputKind](/reference/input/gameinput/enums/gameinputkind)

## Version History

| Version | Changes        |
| ------- | -------------- |
| **v3**  | Re-introduced. |
| **v1**  | Removed.       |
| **v0**  | Introduced.    |
