Where are inputs located?

ValveInteractor

This is where we set the interact key for the system (No direct calls here)

if (raycastedObj != null)
{
    raycastedObj.ObjectInteract(true, interactKey);
}

ValveItem

void ItemUseInput()
{
    if (canInteract)
    {
        if (Input.GetKey(interactionKey))
        {
            ItemActionOn();
        }
        else
        {
            ItemActionOff();
        }
    }
}

ValveInventory

private void Update()
{
    if (Input.GetKeyDown(openInventoryKey))
    {
        ValveUIManager.instance.OpenInventory();
    }
}

Last updated

Was this helpful?