private void ProcessItemInteraction() { if (inventory.currentlySelectedSlot.isFocus) { if (!dpadActive && Mathf.Abs(Input.GetAxis("DPad X")) == 1) { dpadActive = true; inventory.CycleItemInteract(Input.GetAxis("DPad X")); } else if (dpadActive && Mathf.Abs(Input.GetAxis("DPad X")) == 0) { dpadActive = false; } if (Input.GetButtonDown("Submit")) { inventory.ItemInteract(); } if (Input.GetButtonDown("Cancel")) { inventory.CallItemInteractBox(false); } } }