pub fn reset(device: VJDevice) -> bool {
        // ResetVJD() is bugged... implement a custom code
        // unsafe { ResetVJD(device) }

        let was_owned = match VJDInfo::get_status(device) {
            VJDStatus::Own => true,
            VJDStatus::Free => false,
            _ => return false,
        };

        if !was_owned {
            VJDOwnership::acquire(device);
        }

        VJDPosFeed::send_position(&VJDPosition::new(device));

        if !was_owned {
            VJDOwnership::relinquish(device);
        }

        true
    }
/**
        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 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 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 .
pub fn reset(device: VJDevice) -> bool {
        // ResetVJD() is bugged... implement a custom code
        // unsafe { ResetVJD(device) }
        let was_owned = match VJDInfo::get_status(device) {
            VJDStatus::Own => true,
            VJDStatus::Free => false,
            _ => return false,
        };
        if !was_owned {
            VJDOwnership::acquire(device);
        }
        VJDPosFeed::send_position(&VJDPosition::new(device));
        if !was_owned {
            VJDOwnership::relinquish(device);
        }
        true
    }
pub fn reset ( device : VJDevice ) -> bool { // ResetVJD() is bugged... implement a custom code // unsafe { ResetVJD(device) } let was_owned = match VJDInfo :: get_status ( device ) { VJDStatus :: Own => true , VJDStatus :: Free => false , _ => return false , } ; if ! was_owned { VJDOwnership :: acquire ( device ) ; } VJDPosFeed :: send_position ( & VJDPosition :: new ( device ) ) ; if ! was_owned { VJDOwnership :: relinquish ( device ) ; } true }
Resets all the controls of the specified device to a set of values.\
Returns `true` if the operation succeeds, `false` otherwise.
Resets all the controls of the specified device to a set of values . \ Returns ` true ` if the operation succeeds ` false ` otherwise .
device
VJDevice
device
VJDevice