From 8a82ea55c797a17bc8d087484bef1fb67bd4a382 Mon Sep 17 00:00:00 2001 From: David Rowe Date: Sat, 13 Jul 2019 10:39:40 +1200 Subject: [PATCH] HMD API vision squeeze properties JSDoc --- .../src/scripting/HMDScriptingInterface.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/interface/src/scripting/HMDScriptingInterface.h b/interface/src/scripting/HMDScriptingInterface.h index 335816bf7c..8a184ace73 100644 --- a/interface/src/scripting/HMDScriptingInterface.h +++ b/interface/src/scripting/HMDScriptingInterface.h @@ -66,6 +66,25 @@ class QScriptEngine; * false. * @property {Rect} playArea=0,0,0,0 - The size and position of the HMD play area in sensor coordinates. Read-only. * @property {Vec3[]} sensorPositions=[]] - The positions of the VR system sensors in sensor coordinates. Read-only. + * + * @property {number} visionSqueezeRatioX=0.0 - The amount of vision squeeze for the x-axis when moving, range 0.0 + * – 1.0. + * @property {number} visionSqueezeRatioY=0.0 - The amount of vision squeeze for the y-axis when moving, range 0.0 + * – 1.0. + * @property {number} visionSqueezeTurningXFactor=0.51 - The additional amount of vision squeeze for the x-axis when turning, + * range 0.01.0. + * @property {number} visionSqueezeTurningYFactor=0.36 - Currently unused. + * @property {number} visionSqueezeUnSqueezeDelay=0.2 - The delay in undoing the vision squeeze effect after motion stops, in + * seconds. + * @property {number} visionSqueezeUnSqueezeSpeed=3.0 - How quickly the vision squeeze effect fades, once + * visionSqueezeUnSqueezeDelay has passed. + * @property {number} visionSqueezeTransition=0.25 - How tightly vision is squeezed, range 0.01 – + * 0.7. + * @property {number} visionSqueezePerEye=1 - 1 if each eye gets a tube to see through, 0 if the face + * gets a tube. + * @property {number} visionSqueezeGroundPlaneY=0.0 - Adjusts how far below the camera the vision squeeze grid is displayed at. + * @property {number} visionSqueezeSpotlightSize=6.0 - The diameter of the circle of vision squeeze grid that is illuminated + * around the camera. */ class HMDScriptingInterface : public AbstractHMDScriptingInterface, public Dependency { Q_OBJECT