Skip to content

YaInputAPI

Beta
User Input

Functions

void YaInputAPI.OnKeyDown(YaEntity entity, function callback<YaEntity, number>)Beta
Listen for keyboard key press events on an avatar entity or entity equipped on Avatar entity.
  • entity The input entity
  • callback callback func
    1. YaEntity The input entity
    2. ushort keycode