pub fn new() -> Result<Self> {
        let vigem = NonNull::new(unsafe { ffi::vigem_alloc() }).ok_or(Error::NoVigemAlloc)?;
        check(unsafe { ffi::vigem_connect(vigem.as_ptr()) })?;
        Ok(Self { vigem })
    }
/// Allocate a new client, connect it and return it.
Allocate a new client, connect it and return it.
Allocate a new client connect it and return it .
pub fn new() -> Result<Self> {
        let vigem = NonNull::new(unsafe { ffi::vigem_alloc() }).ok_or(Error::NoVigemAlloc)?;
        check(unsafe { ffi::vigem_connect(vigem.as_ptr()) })?;
        Ok(Self { vigem })
    }
pub fn new ( ) -> Result < Self > { let vigem = NonNull :: new ( unsafe { ffi :: vigem_alloc ( ) } ) . ok_or ( Error :: NoVigemAlloc ) ? ; check ( unsafe { ffi :: vigem_connect ( vigem . as_ptr ( ) ) } ) ? ; Ok ( Self { vigem } ) }
Allocate a new client, connect it and return it.
Allocate a new client connect it and return it .