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.
pub fn set_disc_pov(
device: VJDevice,
pov_number: VJDPovNumber,
disc_direction: VJDPovDisc
) -> bool
pub fn set_disc_pov(
device: VJDevice,
pov_number: VJDPovNumber,
disc_direction: VJDPovDisc
) -> bool
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.