Struct vjoy_wrapper::vjoy_base::device::feeding::VJDSeqFeed[][src]

pub struct VJDSeqFeed(_);
Expand description

Holder of utility methods to feed/update vJoy devices in a less efficient way by using sequential updates.

Feeds vJoy devices sequentially. This is the less efficient way, each methods’ call will in the internal implementation make a call to UpdateVJD(…).

Another strategy exist with VJDPosFeed which will force you keep track of a VJDPosition, but is more efficient. See VJDPosFeed for more details.

Implementations

Resets all the controls of the specified device to a set of values.
Returns true if the operation succeeds, false otherwise.

These values are hard coded in the vJoy interface DLL and are currently set as follows:

  • Axes X, Y & Z: middle point.
  • All other axes: 0.
  • POV switches: neutral.
  • Buttons: not pressed.

Resets all the controls of all devices to a set of values.

Please note: vJoy public API doesn’t tell us if it succeeds or not.

Resets all buttons to a released state in the specified device.

Resets all POV switches to a neutral state in the specified device.

Write a value to the given axis of the specified device. Only a device in state VJDStatus::Own can have his axes altered.

Returns true if the operation succeeds, false otherwise.

Value can be in the range of 0 to 32767. Middle point is at 16384.

Set a given button of the specified device pressed or released. Only a device in state VJDStatus::Own can have his buttons altered.

Returns true if the operation succeeds, false otherwise.

Button number can be in the range 1 to 128.

Write a discrete direction to a given discrete POV of the specified device.

Returns true if the operation succeeds, false otherwise.

Write a value to a given continuous POV of the specified device.

Returns true if the operation succeeds, false otherwise.

Value can be in the range 0 to 35999, neutral is u32::MAX.
A value is measured in units of one-hundredth a degree.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.