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

# ILampInfo::GetScanCode method

> Returns the keyboard scan code associated with a Lamp on a LampArray keyboard, letting titles map lighting to specific physical keys on the device.

# ILampInfo::GetScanCode

Returns the keyboard scan code associated with this Lamp.

## Syntax

```cpp theme={null}
uint32_t GetScanCode(
)
```

### Parameters

This method has no parameters.

### Return value

Type: uint32\_t

The keyboard scan code associated with this Lamp. Returns 0 if this Lamp is not addressable by a keyboard scan code.

## Remarks

This method will return 0 if the LampArray does not support scan codes (see [ILampArray::SupportsScanCodes](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_supportsscancodes)).

## 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)\
[Windows Keyboard Input Reference - Scan Codes](https://learn.microsoft.com/windows/win32/inputdev/about-keyboard-input#scan-codes)\
[ILampInfo](/reference/lighting/lamparray/interfaces/ilampinfo/ilampinfo)


## Related topics

- [ILampInfo::GetIndex method](/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getindex.md)
- [ILampInfo::GetPosition method](/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getposition.md)
- [ILampInfo::GetPurposes method](/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getpurposes.md)
- [ILampInfo::GetNearestSupportedColor method](/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getnearestsupportedcolor.md)
- [ILampInfo::GetFixedColor method](/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getfixedcolor.md)
