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

# SupportsScanCodes

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

Returns whether a ILampArray supports targeting individual lamps using keyboard scan codes. This will typically apply to ILampArrays whose [LampArrayKind](https://docs.xbox.com/reference/lighting/lamparray/enums/lamparraykind.md) 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](https://docs.xbox.com/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_setcolorsforscancodes.md).

## Requirements

**Header:** LampArray.h

**Library:** xgameplatform.lib

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

## See also

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


## Related topics

- [GetScanCode](https://docs.xbox.com/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getscancode.md)
- [SetColorsForScanCodes](https://docs.xbox.com/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_setcolorsforscancodes.md)
- [ILampArray (Interface contents)](https://docs.xbox.com/reference/lighting/lamparray/interfaces/ilamparray/ilamparray.md)
- [XUser Cross-Platform Support](https://docs.xbox.com/build/core-features/common/user/xuser-crossplatform.md)
- [Submission Validator quality checks](https://docs.xbox.com/build/core-features/common/packaging/subval/submissionvalidator-tests.md)
