12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- using System;
- using UnityEngine;
- using UnityEngine.EventSystems;
- public class BaseInput2 : BaseInput
- {
- public override bool GetMouseButtonDown(int button)
- {
- return NInput.GetMouseButtonDown(button);
- }
- public override bool GetMouseButtonUp(int button)
- {
- return NInput.GetMouseButtonUp(button);
- }
- public override bool GetMouseButton(int button)
- {
- return NInput.GetMouseButton(button);
- }
- public override Vector2 mousePosition
- {
- get
- {
- return GameMain.Instance.OvrMgr.SystemUICamera.GetOvrVirtualMouseCurrentSidePos();
- }
- }
- public override Vector2 mouseScrollDelta
- {
- get
- {
- return new Vector2(0f, NInput.GetAxis("Mouse ScrollWheel") * 10f);
- }
- }
- public override bool touchSupported
- {
- get
- {
- return false;
- }
- }
- public override int touchCount
- {
- get
- {
- return 0;
- }
- }
- public override float GetAxisRaw(string axisName)
- {
- return NInput.GetAxis(axisName);
- }
- }
|