//======= Copyright (c) Stereolabs Corporation, All rights reserved. =============== // ##DEPRECATED using UnityEngine; /// /// Interface for handling SteamVR and Oculus tracked controllers in the same way. /// Implemented in ZEDSteamVRControllerManager and ZEDOculusControllerManager. /// public interface ZEDControllerManager { /// /// Whether controllers have been initialized. /// bool PadsAreInit { get;} /// /// Checks if a button is down. /// /// Button to check. /// ID of the controller to check. /// bool GetDown(sl.CONTROLS_BUTTON button, int controllerid = -1); /// /// Checks if a trigger is down. /// /// Trigger to check. /// ID of the controller to check. /// float GetHairTrigger(sl.CONTROLS_AXIS1D button, int controllerID = -1); /// /// Gets the ID of the right controller. /// /// int GetRightIndex(); /// /// Gets the ID of the left controller. /// /// int GetLeftIndex(); /// /// Gets the local position of a controller. /// /// /// Vector3 GetPosition(int IDPad); /// /// Loads the index of a controller according to files created from the ZED calibration tool. /// /// void LoadIndex(string path); /// /// Gets the index of the current ZEDHolder object. /// int ControllerIndexZEDHolder { get; } } namespace sl { /// /// VR controller button press sources. /// public enum CONTROLS_BUTTON { THREE, ONE, PRIMARY_THUMBSTICK, SECONDARY_THUMBSTICK } /// /// VR controller trackpad/analog stick movement sources. /// public enum CONTROLS_AXIS2D { PRIMARY_THUBMSTICK, SECONDARY_THUMBSTICK } /// /// VR controller trigger movement sources. /// public enum CONTROLS_AXIS1D { PRIMARY_INDEX_TRIGGER, SECONDARY_INDEX_TRIGGER, PRIMARY_HAND_TRIGGER, SECONDARY_HAND_TRIGGER } }