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

# ILampArray::SupportsScanCodes method

> Returns whether a LampArray supports addressing individual Lamps by keyboard scan code, typically true for peripherals of LampArrayKind Keyboard.

# ILampArray::SupportsScanCodes

Returns whether a ILampArray supports targeting individual lamps using keyboard scan codes. This will typically apply to ILampArrays whose [LampArrayKind](/reference/lighting/lamparray/enums/lamparraykind) is Keyboard.

## Syntax

```cpp theme={null}
bool SupportsScanCodes(
)
```

### Parameters

This method has no parameters.

### Return value

Type: bool

Returns true if at least one Lamp is addressable by a keyboard scan code.

## Remarks

If an ILampArray supports scan codes, colors on the device can be changed using [ILampArray::SetColorsForScanCodes](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_setcolorsforscancodes).

## Requirements

**Header:** LampArray.h

**Library:** xgameplatform.lib

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

## See also

[Lighting API Overview](/build/core-features/common/lighting/gc-lighting-toc)\
[ILampArray::SetColorsForScanCodes](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_setcolorsforscancodes)\
[ILampArray](/reference/lighting/lamparray/interfaces/ilamparray/ilamparray)


## Related topics

- [ILampArray::SetColorsForScanCodes method](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_setcolorsforscancodes.md)
- [ILampInfo::GetScanCode method](/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getscancode.md)
- [ILampArray interface reference](/reference/lighting/lamparray/interfaces/ilamparray/ilamparray.md)
- [ILampArray::GetLampInfo method](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlampinfo.md)
- [ILampArray::SetColorsForIndices method](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_setcolorsforindices.md)
