|
| proto external bool | IsJoystickConnected (int iSlotIndex) |
| |
| proto external int | GetJoystickVendorId (int iSlotIndex) |
| | Retrieves the USB vendor ID of the joystick on the given slot.
|
| |
| proto external int | GetJoystickProductId (int iSlotIndex) |
| | Retrieves the USB product ID of the joystick on the given slot.
|
| |
| proto external string | GetJoystickProductName (int iSlotIndex) |
| | Returns the human-readable name of the joystick.
|
| |
| proto external bool | StartFFEffectConstantForce (int iSlotIndex, int iEffectIndex, JoystickFFEffectType eEffectType, float fMagnitude, int iDurationMs=-1) |
| | Starts a constant force feedback effect on the joystick.
|
| |
| proto external bool | StartFFEffectRamp (int iSlotIndex, int iEffectIndex, JoystickFFEffectType eEffectType, float fStart, float fEnd, int iDurationMs=-1) |
| | Starts a ramp force feedback effect on the joystick.
|
| |
| proto external bool | StartFFEffectPeriodic (int iSlotIndex, int iEffectIndex, JoystickFFEffectType eEffectType, float fMagnitude, float fFrequencyHz=50, float fOffset=0, float fPhase=0, int iDurationMs=-1) |
| | Starts a periodic force feedback effect on the joystick.
|
| |
| proto external bool | StartFFEffectCondition (int iSlotIndex, int iEffectIndex, JoystickFFEffectType eEffectType, float fPositiveCoefficient, float fNegativeCoefficient, float fOffset=0, float fDeadBand=0, int iDurationMs=-1) |
| | Starts a condition-based force feedback effect on the joystick.
|
| |
| proto external void | StopForceFeedbackEffect (int iSlotIndex, int iEffectIndex=-1) |
| | Stops a force feedback effect.
|
| |
◆ GetJoystickProductId()
| proto external int JoystickDeviceHandler.GetJoystickProductId |
( |
int | iSlotIndex | ) |
|
Retrieves the USB product ID of the joystick on the given slot.
- Parameters
-
| iSlotIndex | Index of the joystick slot. |
- Returns
- USB Product ID.
◆ GetJoystickProductName()
| proto external string JoystickDeviceHandler.GetJoystickProductName |
( |
int | iSlotIndex | ) |
|
Returns the human-readable name of the joystick.
- Parameters
-
| iSlotIndex | Index of the joystick slot. |
- Returns
- Product name as a string.
◆ GetJoystickVendorId()
| proto external int JoystickDeviceHandler.GetJoystickVendorId |
( |
int | iSlotIndex | ) |
|
Retrieves the USB vendor ID of the joystick on the given slot.
- Parameters
-
| iSlotIndex | Index of the joystick slot. |
- Returns
- USB Vendor ID.
◆ IsJoystickConnected()
| proto external bool JoystickDeviceHandler.IsJoystickConnected |
( |
int | iSlotIndex | ) |
|
◆ StartFFEffectCondition()
Starts a condition-based force feedback effect on the joystick.
- Parameters
-
| iSlotIndex | Index of the joystick slot. |
| iEffectIndex | Effect slot. Valid values are <0, 3>. |
| eEffectType | Type of force feedback condition effect. |
- Note
- Supported values: SPRING, DAMPER, INERTIA, FRICTION.
- Parameters
-
| fPositiveCoefficient | Coefficient for positive force direction. |
| fNegativeCoefficient | Coefficient for negative force direction. |
| fOffset | Center offset. |
| fDeadBand | Deadband amount. |
| iDurationMs | Duration in milliseconds. -1 for infinite duration. |
- Returns
- true if successful, false otherwise.
◆ StartFFEffectConstantForce()
Starts a constant force feedback effect on the joystick.
- Parameters
-
| iSlotIndex | Index of the joystick slot. |
| iEffectIndex | Effect slot. Valid values are <0, 3>. |
| eEffectType | Type of force feedback effect. |
- Note
- Only CONSTANT_FORCE is supported.
- Parameters
-
| fMagnitude | Force magnitude. |
| iDurationMs | Duration in milliseconds. -1 for infinite duration. |
- Returns
- true if successful, false otherwise.
◆ StartFFEffectPeriodic()
Starts a periodic force feedback effect on the joystick.
- Parameters
-
| iSlotIndex | Index of the joystick slot. |
| iEffectIndex | Effect slot. Valid values are <0, 3>. |
| eEffectType | Type of force feedback periodic effect. |
- Note
- Supported values: SQUARE, SINE, TRIANGLE, SAWTOOTH_UP, SAWTOOTH_DOWN.
- Parameters
-
| fMagnitude | Magnitude of the force. |
| fFrequencyHz | Frequency in Hz (default 50Hz). |
| fOffset | Offset value. |
| fPhase | Phase shift value. |
| iDurationMs | Duration in milliseconds. -1 for infinite duration. |
- Returns
- true if successful, false otherwise.
◆ StartFFEffectRamp()
Starts a ramp force feedback effect on the joystick.
- Parameters
-
| iSlotIndex | Index of the joystick slot. |
| iEffectIndex | Effect slot. Valid values are <0, 3>. |
| eEffectType | Type of force feedback effect. |
- Note
- Only RAMP_FORCE is supported.
- Parameters
-
| fStart | Start magnitude. |
| fEnd | End magnitude. |
| iDurationMs | Duration in milliseconds. -1 for infinite duration. |
- Returns
- true if successful, false otherwise.
◆ StopForceFeedbackEffect()
| proto external void JoystickDeviceHandler.StopForceFeedbackEffect |
( |
int | iSlotIndex, |
|
|
int | iEffectIndex = -1 ) |
Stops a force feedback effect.
- Parameters
-
| iSlotIndex | Index of the joystick slot. |
| iEffectIndex | Effect slot. Valid values are <0, 3>. Use -1 to stop all effects. |
The documentation for this interface was generated from the following file:
- GameLib/generated/Input/JoystickDeviceHandler.c