Skip to content

Support gyroscope with DS4 emulation #14

Description

@Crayon2000

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!

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions