public LE_Input(LE_IInputHandler p_inputHandler) { m_inputDevices = new LE_InputDeviceBase[3]; m_inputDevices[0] = new LE_InputDeviceKeyboard(p_inputHandler); m_inputDevices[1] = new LE_InputDeviceMouse(p_inputHandler); m_inputDevices[2] = new LE_InputDeviceTouchscreen(p_inputHandler); }
public LE_InputDeviceTouchscreen(LE_IInputHandler p_inputHandler) : base(p_inputHandler) { TG_TouchGestures.Instance.EnableGesture(TG_ETouchGestureType.PRESS_1_FINGER); TG_TouchGestures.Instance.EnableGesture(TG_ETouchGestureType.PRESS_2_FINGER); TG_TouchGestures.Instance.EnableGesture(TG_ETouchGestureType.PRESS_3_FINGER); TG_TouchGestures.Instance.EnableGesture(TG_ETouchGestureType.ZOOM); TG_TouchGestures.Instance.OnGestureDetected += OnTouchGestureDetected; }
public LE_InputDeviceBase(LE_IInputHandler p_inputHandler) { m_inputHandler = p_inputHandler; }
public LE_InputDeviceKeyboard(LE_IInputHandler p_inputHandler) : base(p_inputHandler) { }
public LE_InputDeviceMouse(LE_IInputHandler p_inputHandler) : base(p_inputHandler) { m_lastMousePosition = Input.mousePosition; }