private void CheckKeyInputs(F3_InputEvent input) { F3_InputEvent.eBUTTON_STATE state = input.GetButtonState(); if (input.GetInputType() == F3_InputEvent.eInputType.INPUT_TYPE_MOUSE) { if (Input.GetMouseButtonDown((int)input.GetKeyCode())) { input.SendPressEvent(Input.mousePosition); return; } if (Input.GetMouseButtonUp((int)input.GetKeyCode())) { input.SendReleaseEvent(Input.mousePosition); return; } if (state != F3_InputEvent.eBUTTON_STATE.RELEASED) { input.SendHoldEvent(Input.mousePosition); } } else { if (Input.GetKeyDown((KeyCode)input.GetKeyCode())) { input.SendPressEvent(Vector3.zero); return; } if (Input.GetKeyUp((KeyCode)input.GetKeyCode())) { input.SendReleaseEvent(Vector3.zero); return; } if (state != F3_InputEvent.eBUTTON_STATE.RELEASED) { input.SendHoldEvent(Vector3.zero); } } }