> For the complete documentation index, see [llms.txt](https://tobar-io.gitbook.io/thock/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tobar-io.gitbook.io/thock/documentation/scriptable-objects/inttokeycodetable.md).

# IntToKeyCodeTable

The IntToKeyCodeTable class is a ScriptableObject that maps integer key codes to Unity's KeyCode values.

### Overview

The `IntToKeyCodeTable` class is a ScriptableObject that maps integer key codes to Unity's KeyCode values.

#### Fields

* `idToKeyCodeTable` (GenericDictionary\<int, KeyCode>): The dictionary mapping integer key codes to KeyCode values.

#### Methods

* `GetUnityKeyCode(int keyCode)`: Returns the KeyCode value associated with the provided integer key code.
* `GetKeyCodeId(KeyCode keyCode)`: Returns the integer key code associated with the provided KeyCode value.
* `HasDuplicates()`: Checks if the dictionary contains duplicate KeyCode values.
* `FillDictionary()`: Fills the dictionary with standard key codes.

### IdToKeyCodeTableEditor Class Documentation

#### Overview

The `IdToKeyCodeTableEditor` class is a custom editor for the IntToKeyCodeTable class.

#### Methods

* `OnInspectorGUI()`: Overrides the default inspector GUI to add custom functionality.
