private void ReceiveInput() { if (inputDevice.MenuDown()) { selectorManager.SwitchSelector(); handlingModule = null; } if (inputDevice.ClickDown()) { if (hasClicked == false) { SendInput(InputType.Click); StartCoroutine(JudgeDoubleClick(InputType.DoubleClick, inputDevice.ClickDown)); hasClicked = true; } } if (inputDevice.Clicking()) { if (inputDevice.ClickDown()) { return; } SendInput(InputType.Clicking); } if (inputDevice.ClickUp()) { SendInput(InputType.Release); } if (inputDevice.SubClickDown()) { if (hasClicked == false) { SendInput(InputType.SubClick); StartCoroutine(JudgeDoubleClick(InputType.DoubleClick, inputDevice.SubClickDown)); hasClicked = true; } } if (inputDevice.SubClicking()) { SendInput(InputType.SubClicking); } if (inputDevice.SubClickUp()) { SendInput(InputType.SubRelease); } if (inputDevice.UpSidePadPressing()) { SendInput(InputType.Up); } if (inputDevice.DownSidePadPressing()) { SendInput(InputType.Down); } if (inputDevice.RightSidePadPressing()) { SendInput(InputType.Right); } if (inputDevice.LeftSidePadPressing()) { SendInput(InputType.Left); } if (inputDevice.PadUp()) { SendInput(InputType.ReleasePad); } if (inputDevice.UpSidePadUp()) { SendInput(InputType.ReleaseUp); } if (inputDevice.DownSidePadUp()) { SendInput(InputType.ReleaseDown); } if (inputDevice.RightSidePadUp()) { SendInput(InputType.ReleaseRight); } if (inputDevice.LeftSidePadUp()) { SendInput(InputType.ReleaseLeft); } }