pub fn connect_x360_pad(&self) -> Result<Target<'_, X360>> {
        let target =
            NonNull::new(unsafe { ffi::vigem_target_x360_alloc() }).ok_or(Error::NoX360PadAlloc)?;
        check(unsafe { ffi::vigem_target_add(self.vigem.as_ptr(), target.as_ptr()) })?;
        Ok(Target {
            client: self,
            target,
            has_notification: false,
            _marker: PhantomData,
        })
    }
/// Create and add a new xbox 360 gamepad target
Create and add a new xbox 360 gamepad target
Create and add a new xbox 360 gamepad target
pub fn connect_x360_pad(&self) -> Result<Target<'_, X360>> {
        let target =
            NonNull::new(unsafe { ffi::vigem_target_x360_alloc() }).ok_or(Error::NoX360PadAlloc)?;
        check(unsafe { ffi::vigem_target_add(self.vigem.as_ptr(), target.as_ptr()) })?;
        Ok(Target {
            client: self,
            target,
            has_notification: false,
            _marker: PhantomData,
        })
    }
pub fn connect_x360_pad ( & self ) -> Result < Target < ' _ , X360 > > { let target = NonNull :: new ( unsafe { ffi :: vigem_target_x360_alloc ( ) } ) . ok_or ( Error :: NoX360PadAlloc ) ? ; check ( unsafe { ffi :: vigem_target_add ( self . vigem . as_ptr ( ) , target . as_ptr ( ) ) } ) ? ; Ok ( Target { client : self , target , has_notification : false , _marker : PhantomData , } ) }
Create and add a new xbox 360 gamepad target
Create and add a new xbox 360 gamepad target
&self
&self