@@ -248,9 +248,17 @@ WUT_CHECK_SIZE(VPADTouchData, 0x08);
248248
249249struct VPADAccStatus
250250{
251+ //! 1.0 = 1 g (Earth's gravitational acceleration.)
251252 VPADVec3D acc ;
253+ //! Length of the `acc` vector.
252254 float magnitude ;
255+ //! Lenght of the `current.acc - previous.acc` vector.
253256 float variation ;
257+ /**
258+ * "Verticality" of the gamepad.
259+ * - `.x` is in `[0, +1]`, where `0` means it's being held vertically, `+1` means it's laying flat on a surface.
260+ * - `.y` is in `[-1, +1]`, where `+1` means the screen is vertical normally, `-1` means the screen is upside down.
261+ */
254262 VPADVec2D vertical ;
255263};
256264WUT_CHECK_OFFSET (VPADAccStatus , 0x00 , acc );
@@ -276,10 +284,10 @@ struct VPADStatus
276284 //! Position of right analog stick.
277285 VPADVec2D rightStick ;
278286
279- //! Status of DRC accelorometer .
280- VPADAccStatus accelorometer ;
287+ //! Status of DRC accelerometer .
288+ VPADAccStatus accelerometer ;
281289
282- //! Status of DRC gyro. 1.0 = 360°
290+ //! Status of DRC gyro. 1.0 = 360° per second.
283291 VPADVec3D gyro ;
284292
285293 //! Status of DRC angle. 1.0 = 360°
@@ -328,7 +336,7 @@ WUT_CHECK_OFFSET(VPADStatus, 0x04, trigger);
328336WUT_CHECK_OFFSET (VPADStatus , 0x08 , release );
329337WUT_CHECK_OFFSET (VPADStatus , 0x0C , leftStick );
330338WUT_CHECK_OFFSET (VPADStatus , 0x14 , rightStick );
331- WUT_CHECK_OFFSET (VPADStatus , 0x1C , accelorometer );
339+ WUT_CHECK_OFFSET (VPADStatus , 0x1C , accelerometer );
332340WUT_CHECK_OFFSET (VPADStatus , 0x38 , gyro );
333341WUT_CHECK_OFFSET (VPADStatus , 0x44 , angle );
334342WUT_CHECK_OFFSET (VPADStatus , 0x50 , error );
0 commit comments