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

> ILampInfo::GetScanCode

# ILampInfo::GetScanCode

この Lamp に関連付けられたキーボードのスキャン コードを返します。

## 構文

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

### パラメーター

このメソッドにはパラメーターがありません。

### 戻り値

Type: uint32\_t

この Lamp に関連付けられたキーボードのスキャン コードです。この Lamp がキーボードのスキャン コードでアドレス指定できない場合は 0 を返します。

## 解説

LampArray がスキャン コードをサポートしていない場合、このメソッドは 0 を返します ([ILampArray::SupportsScanCodes](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_supportsscancodes) を参照)。

## 要件

**ヘッダー:** LampArray.h

**ライブラリ:** xgameplatform.lib

**サポートされているプラットフォーム:** XBOX One ファミリ本体および XBOX Series 本体

## 関連項目

[Lighting API の概要](/build/core-features/common/lighting/gc-lighting-toc)\
[Windows キーボード入力リファレンス - スキャン コード](https://learn.microsoft.com/windows/win32/inputdev/about-keyboard-input#scan-codes)\
[ILampInfo](/reference/lighting/lamparray/interfaces/ilampinfo/ilampinfo)


## Related topics

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