Class TuringMouse
- Namespace
- Turing.Core.TuringInput
- Assembly
- Turing.Core.dll
public class TuringMouse : TuringPointer
- Inheritance
-
ObjectComponentBehaviourMonoBehaviourTuringMouse
- Inherited Members
-
MonoBehaviour.IsInvoking()MonoBehaviour.CancelInvoke()MonoBehaviour.StopCoroutine(Coroutine)MonoBehaviour.StopAllCoroutines()MonoBehaviour.useGUILayoutMonoBehaviour.runInEditModeBehaviour.enabledBehaviour.isActiveAndEnabledComponent.GetComponent<T>()Component.TryGetComponent<T>(out T)Component.GetComponentInChildren<T>()Component.GetComponentsInChildren<T>()Component.GetComponentInParent<T>()Component.GetComponentsInParent<T>()Component.GetComponents<T>()Component.transformComponent.gameObjectComponent.tagObject.GetInstanceID()Object.GetHashCode()Object.Instantiate(Object, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion, Transform)Object.Instantiate(Object)Object.Instantiate(Object, Transform)Object.Instantiate<T>(T)Object.Instantiate<T>(T, Vector3, Quaternion)Object.Instantiate<T>(T, Vector3, Quaternion, Transform)Object.Instantiate<T>(T, Transform)Object.Destroy(Object)Object.DestroyImmediate(Object)Object.DontDestroyOnLoad(Object)Object.DestroyObject(Object)Object.FindObjectsOfType<T>()Object.FindObjectsByType<T>(FindObjectsSortMode)Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)Object.FindObjectOfType<T>()Object.FindFirstObjectByType<T>()Object.FindAnyObjectByType<T>()Object.FindFirstObjectByType<T>(FindObjectsInactive)Object.FindAnyObjectByType<T>(FindObjectsInactive)Object.ToString()Object.nameObject.hideFlags
- Extension Methods
Properties
ButtonCount
The number of buttons supported by the mouse.
public override int ButtonCount { get; }
Property Value
EndPointWorldPose
The pose of the pointer's current end point in world space.
public override Pose EndPointWorldPose { get; }
Property Value
- Pose
Remarks
In this particular case, this will be the the mouse cursor's world pose.
Id
The unique id of the mouse pointer.
public override int Id { get; }
Property Value
IsVisible
The current visibility state of the mouse.
public override bool IsVisible { get; }
Property Value
Remarks
Since the mouse is not a 6-DOF trackable target and is present on all platforms we currently support (e.g. Windows), IsVisible is hard-coded to true.
ScrollDelta
The current scroll delta for the mouse.
public override Vector2 ScrollDelta { get; }
Property Value
- Vector2
Remarks
The scroll delta for the mouse is only stored in Vector2.y (Vector2.x is ignored).
Methods
ComputeWorldPose()
protected override Pose ComputeWorldPose()
Returns
- Pose
GetButton(int)
Gets whether the specified button is pressed.
public override bool GetButton(int id)
Parameters
idintThe integer id of the specified button.
Returns
- bool
True if the specified button is pressed. False otherwise.
OnDisable()
protected override void OnDisable()
OnEnable()
protected override void OnEnable()
Start()
protected override void Start()
Update()
protected override void Update()