Essgee.Unity/Assets/Plugins/Essgee/Utilities/XInput/XInputVibration.cs
2025-01-02 17:55:16 +08:00

15 lines
390 B
C#

using System.Runtime.InteropServices;
namespace Essgee.Utilities.XInput
{
/* https://msdn.microsoft.com/en-us/library/windows/desktop/microsoft.directx_sdk.reference.xinput_vibration%28v=vs.85%29.aspx */
[StructLayout(LayoutKind.Explicit)]
public struct XInputVibration
{
[FieldOffset(0)]
public ushort wLeftMotorSpeed;
[FieldOffset(2)]
public ushort wRightMotorSpeed;
}
}