public final class XInputVibration
extends com.sun.jna.Structure
specifies motor speed levels for the vibration function of a controller.
The left motor is the low-frequency rumble motor. The right motor is the high-frequency rumble motor. The two motors are not the same, and they create different vibration effects.
Header | XInput.h |
---|
Source: Microsoft Documentation
XInput.XInputSetState(int, XInputVibration)
,
XInputGamepad
,
XInput.XInputGetCapabilities(int, int, XInputCapabilities)
Modifier and Type | Field and Description |
---|---|
short |
wLeftMotorSpeed
Speed of the left motor.
|
short |
wRightMotorSpeed
Speed of the right motor.
|
Constructor and Description |
---|
XInputVibration() |
autoRead, autoRead, autoWrite, autoWrite, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, equals, getAutoRead, getAutoWrite, getPointer, hashCode, newInstance, newInstance, read, readField, setAutoRead, setAutoSynch, setAutoWrite, size, toArray, toArray, toString, toString, write, writeField, writeField
public short wLeftMotorSpeed
Speed of the left motor. Valid values are in the range 0
to 65535
. Zero signifies no motor use; 65535
signifies 100 percent motor use.
Source: Microsoft Documentation
public short wRightMotorSpeed
Speed of the right motor. Valid values are in the range 0
to 65535
. Zero signifies no motor use; 65535
signifies 100 percent motor use.
Source: Microsoft Documentation