Browse Source

Image improvements;

bjorn 1 year ago
parent
commit
fdc2aa3bb3
2 changed files with 5 additions and 5 deletions
  1. 1 1
      api/init.lua
  2. 4 4
      api/lovr/headset/Device.lua

+ 1 - 1
api/init.lua

@@ -22116,7 +22116,7 @@ return {
           description = "Different types of input devices supported by the `lovr.headset` module.",
           key = "Device",
           module = "lovr.headset",
-          notes = "The `hand/*/grip` pose is used to render an object held in the user's hand.  It's positioned at the surface of the palm.  The X axis of the grip orientation is perpendicular to the palm, pointing away from the left palm or into the right palm.  If you imagine the hand holding a stick, the Z axis will be parallel to the stick.\n\n<img src=\"/img/grip.svg\" height=\"400\"/>\n\n---\n\nThe `/point` pose is used to aim or point at objects.  It's usually positioned slightly in front of the hand or controller, and is oriented so the -Z axis points in a natural forward direction.\n\n<img src=\"/img/aim.svg\" height=\"400\"/>\n\n---\n\nThe `pinch` pose is a stable point between the thumb and index finger on a hand, or a point slightly in front of a controller.  The -Z axis will point forward, away from the hand.  It's good for precise, close-range interaction.\n\n<img src=\"/img/pinch.svg\" height=\"400\"/>\n\n---\n\nThe `poke` pose is a position located at the tip of the index finger, or a point slightly in front of a controller.  The -Z axis will point forward out of the tip of the finger, the +Y axis will be perpendicular to the fingernail.\n\n<img src=\"/img/poke.svg\" height=\"400\"/>\n\nThese \"hand pose devices\" do not report any button input with e.g. `lovr.headset.isDown`.  The main `hand/left` and `hand/right` devices should be used for buttons and haptics.",
+          notes = "The `hand/*/grip` pose is used to render an object held in the user's hand.  It's positioned at the surface of the palm.  The X axis of the grip orientation is perpendicular to the palm, pointing away from the left palm or into the right palm.  If you imagine the hand holding a stick, the Z axis will be parallel to the stick.\n\n<img src=\"/img/grip.svg\" width=\"600\" alt=\"Hand Grip Pose\"/>\n\n---\n\nThe `/point` pose is used to aim or point at objects.  It's usually positioned slightly in front of the hand or controller, and is oriented so the -Z axis points in a natural forward direction.\n\n<img src=\"/img/aim.svg\" width=\"600\" alt=\"Hand Point Pose\"/>\n\n---\n\nThe `pinch` pose is a stable point between the thumb and index finger on a hand, or a point slightly in front of a controller.  The -Z axis will point forward, away from the hand.  It's good for precise, close-range interaction.\n\n<img src=\"/img/pinch.svg\" width=\"600\" alt=\"Hand Pinch Pose\"/>\n\n---\n\nThe `poke` pose is a position located at the tip of the index finger, or a point slightly in front of a controller.  The -Z axis will point forward out of the tip of the finger, the +Y axis will be perpendicular to the fingernail.\n\n<img src=\"/img/poke.svg\" width=\"600\" alt=\"Hand Poke Pose\"/>\n\nThese \"hand pose devices\" do not report any button input with e.g. `lovr.headset.isDown`.  The main `hand/left` and `hand/right` devices should be used for buttons and haptics.",
           related = {
             "DeviceAxis",
             "DeviceButton",

+ 4 - 4
api/lovr/headset/Device.lua

@@ -142,14 +142,14 @@ return {
     pointing away from the left palm or into the right palm.  If you imagine the hand holding a
     stick, the Z axis will be parallel to the stick.
 
-    <img src="/img/grip.svg" height="400"/>
+    <img src="/img/grip.svg" width="600" alt="Hand Grip Pose"/>
 
     ---
 
     The `/point` pose is used to aim or point at objects.  It's usually positioned slightly in front
     of the hand or controller, and is oriented so the -Z axis points in a natural forward direction.
 
-    <img src="/img/aim.svg" height="400"/>
+    <img src="/img/aim.svg" width="600" alt="Hand Point Pose"/>
 
     ---
 
@@ -157,7 +157,7 @@ return {
     slightly in front of a controller.  The -Z axis will point forward, away from the hand.  It's
     good for precise, close-range interaction.
 
-    <img src="/img/pinch.svg" height="400"/>
+    <img src="/img/pinch.svg" width="600" alt="Hand Pinch Pose"/>
 
     ---
 
@@ -165,7 +165,7 @@ return {
     front of a controller.  The -Z axis will point forward out of the tip of the finger, the +Y axis
     will be perpendicular to the fingernail.
 
-    <img src="/img/poke.svg" height="400"/>
+    <img src="/img/poke.svg" width="600" alt="Hand Poke Pose"/>
 
     These "hand pose devices" do not report any button input with e.g. `lovr.headset.isDown`.  The
     main `hand/left` and `hand/right` devices should be used for buttons and haptics.