⌨️
Thock
Get Thock
  • About
    • ⌨️Description
    • 🚀Quick Start
    • ™️Third-Party information
    • Sample Scenes
      • Example_ScreenTypewriter-and-Soundpacks
      • Example_Type
      • Example_StringEvents
  • Documentation
    • Thock
    • Convert JSON to Soundpack
      • ConvertJsonToSoundpack
    • Utilities
      • StringEventListener
        • StringEventListener Component Tutorial
      • KeyPressEventReceiver
      • KeyPressEventSender
    • Scriptable-Objects
      • SoundPackSO
      • IntToKeyCodeTable
      • StereoAudioMapping
      • StringToKeycodeTable
    • Types
      • SoundMap
Powered by GitBook
On this page
  • Overview
  • IdToKeyCodeTableEditor Class Documentation
  1. Documentation
  2. Scriptable-Objects

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.

PreviousSoundPackSONextStereoAudioMapping

Last updated 1 year ago