> ## 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.

# APP_LOCAL_DEVICE_ID

> APP_LOCAL_DEVICE_ID

# APP\_LOCAL\_DEVICE\_ID

Specifies the root ID of a local input device.

## Syntax

```cpp theme={null}
typedef struct APP_LOCAL_DEVICE_ID {  
    BYTE value[APP_LOCAL_DEVICE_ID_SIZE];  
} APP_LOCAL_DEVICE_ID  
```

### Members

*value*\
Type: BYTE\[APP\_LOCAL\_DEVICE\_ID\_SIZE]

The root ID of a local input device.

## Remarks

The [IGameInput::FindDeviceFromId](/reference/input/gameinput/interfaces/igameinput/methods/igameinput_finddevicefromid) method uses a pointer to an APP\_LOCAL\_DEVICE\_ID constant to retrieve a device based on the DeviceID.

The [XInputGetDeviceId](/reference/input/xinputongameinput/functions/xinputgetdeviceid) function uses a pointer to an APP\_LOCAL\_DEVICE\_ID structure to return the APP\_LOCAL\_DEVICE\_ID for the device at a given user index.

The [XUserDeviceAssociationChange](/reference/system/xuser/structs/xuserdeviceassociationchange) structure includes an APP\_LOCAL\_DEVICE\_ID structure member.

The [XUserFindForDevice](/reference/system/xuser/functions/xuserfindfordevice) function uses a pointer to an APP\_LOCAL\_DEVICE\_ID structure to retrieve a user ID for a specific device ID.

A "null" APP\_LOCAL\_DEVICE\_ID will be equal to the value of **XUserNullDeviceId**.

## Requirements

**Header:** XUser.h

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

## See also

[XUser](/reference/system/xuser/xuser_members)

[XUserLocalId](/reference/system/xuser/structs/xuserlocalid)

[IGameInput::FindDeviceFromId](/reference/input/gameinput/interfaces/igameinput/methods/igameinput_finddevicefromid)

[XInputGetDeviceId](/reference/input/xinputongameinput/functions/xinputgetdeviceid)


## Related topics

- [ILampArray::GetDeviceId method](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getdeviceid.md)
- [XUserFindForDevice](/reference/system/xuser/functions/xuserfindfordevice.md)
- [XInputGetDeviceId](/reference/input/xinputongameinput/functions/xinputgetdeviceid.md)
- [IGameInput::FindDeviceFromId](/reference/input/gameinput/interfaces/igameinput/methods/igameinput_finddevicefromid.md)
- [XUserDeviceAssociationChange](/reference/system/xuser/structs/xuserdeviceassociationchange.md)
