In UsendMii, add support for gyroscope with DualShock 4 emulation (ViGEm).
What we know from the VPADStatus structure:
| Item |
Description |
| gyro |
The value of the DRC angular velocity in each direction. 360 dps is expressed as a value ranging from 0 to 1. |
| angle |
The value of the DRC rotational angle obtained by calculating the value of the angular velocity in each direction. 360 degrees is expressed as a value ranging from 0 to 1.0. |
In ViGEm the DS4_REPORT_EX structure:
typedef struct _DS4_REPORT_EX
{
union
{
struct
{
//...
SHORT wGyroX;
SHORT wGyroY;
SHORT wGyroZ;
//...
} Report;
UCHAR ReportBuffer[63];
};
} DS4_REPORT_EX, *PDS4_REPORT_EX;
From the README in https://github.com/jangxx/node-ViGEmClient:
Sets the gyroscope orientation. Each value is in degrees and must be between -2000 and 2000.
This is all the information I have right now about the gyroscope on the WiiU GamePad and the DualShock 4!
In UsendMii, add support for gyroscope with DualShock 4 emulation (ViGEm).
What we know from the
VPADStatusstructure:In ViGEm the
DS4_REPORT_EXstructure:From the README in https://github.com/jangxx/node-ViGEmClient:
This is all the information I have right now about the gyroscope on the WiiU GamePad and the DualShock 4!