Learn / Documentation / Key To Game Event

Description

The Key To Game Event listens for the set input key or virtual button and, when triggered, sends the set game event

Component Details

Gesture Listener
  • Manual – Link to the manual page for this component

  • YouTube – Link to the quick video tutorial for this component

  • Debug Mode – Enables relevant debug messages to be printed to the console

  • Input Mode – Allows for this Key to Game Event component to react to keys or virtual buttons. See InputData, InputMode

  • Key Code – The key code that will trigger the sending of the set game event (if InputMode.KeyCode)

  • Virtual Button – The virtual button name that will trigger the sending of the set game event (if InputMode.VirtualButton)

  • Alternate Input – The enables the check for alternate inputs for the target component. If the InputMode is set to None, this option does nothing. If the InputMode is set to KeyCode, this option enables the setting for an alternate button (KeyCode) to register a click/touch. If the InputMode is set to VirtualButton, this option enabled the setting for an alternate virtual button (button name set in the InputManager) to register a click/touch.

  • Alternate Key Code – The key code alternate that will trigger the sending of the set game event (if InputMode.KeyCode)

  • Alternate Virtual Button – The virtual button name alternate that will trigger the sending of the set game event (if InputMode.VirtualButton)

  • Game Event – Game Event to send when this Key To Game Event is triggered