Table of Contents

Class TuringStylus

Namespace
Turing.Core.TuringInput
Assembly
Turing.Core.dll
public class TuringStylus : TuringPointer
Inheritance
Object
Component
Behaviour
MonoBehaviour
TuringStylus
Inherited Members
MonoBehaviour.IsInvoking()
MonoBehaviour.CancelInvoke()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.useGUILayout
MonoBehaviour.runInEditMode
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Component.transform
Component.gameObject
Component.tag
Object.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.name
Object.hideFlags
Extension Methods

Fields

_target

public TuringTarget _target

Field Value

TuringTarget

Properties

ButtonCount

The number of buttons supported by the stylus.

public override int ButtonCount { get; }

Property Value

int

HatPoint

public Vector3 HatPoint { get; }

Property Value

Vector3

Id

The unique id of the stylus pointer.

public override int Id { get; }

Property Value

int

IsVisible

The current visibility state of the stylus.

public override bool IsVisible { get; }

Property Value

bool

ScrollDelta

The current scroll delta of the stylus.

public override Vector2 ScrollDelta { get; }

Property Value

Vector2

Remarks

Since the stylus has not scroll support, the current implementation is hard-coded to the zero vector.

TipPoint

public Vector3 TipPoint { get; }

Property Value

Vector3

TrackerPose

The pose of the stylus in tracker space.

public Pose TrackerPose { get; }

Property Value

Pose

Methods

Awake()

protected override void Awake()

ComputeWorldPose()

protected override Pose ComputeWorldPose()

Returns

Pose

GetButton(int)

Gets whether the specified button is pressed.

public override bool GetButton(int id)

Parameters

id int

The integer id of the specified button.

Returns

bool

True if the specified button is pressed. False otherwise.

SetBlueColor(bool)

public void SetBlueColor(bool isOn)

Parameters

isOn bool

SetRedColor(bool)

public void SetRedColor(bool isOn)

Parameters

isOn bool

StartVibration(int, float)

public void StartVibration(int intensity, float duration = 0.2)

Parameters

intensity int
duration float

StartVibration(VibrationIntensity, float)

public void StartVibration(VibrationIntensity intensity, float duration = 0.2)

Parameters

intensity VibrationIntensity
duration float