@@ -409,6 +409,7 @@ impl Connection {
409409 #[ doc = " @param camera The camera to use, a member of the eLeapPerspectiveType enumeration" ]
410410 #[ doc = " @param[out] dest A pointer to a single-precision float array of size 9" ]
411411 #[ doc = " @since 3.2.1" ]
412+ #[ cfg( feature = "gemini" ) ]
412413 pub fn camera_matrix ( & mut self , camera : PerspectiveType , dest : & mut [ f32 ; 9 ] ) {
413414 unsafe { LeapCameraMatrix ( self . handle , camera. into ( ) , dest. as_mut_ptr ( ) ) }
414415 }
@@ -422,6 +423,7 @@ impl Connection {
422423 #[ doc = " @param camera The camera to use, a member of the eLeapPerspectiveType enumeration" ]
423424 #[ doc = " @param[out] dest A pointer to a single-precision float array of size 8." ]
424425 #[ doc = " @since 3.2.1" ]
426+ #[ cfg( feature = "gemini" ) ]
425427 pub fn distortion_coeffs ( & mut self , camera : PerspectiveType , dest : & mut [ f32 ; 8 ] ) {
426428 unsafe { LeapDistortionCoeffs ( self . handle , camera. into ( ) , dest. as_mut_ptr ( ) ) }
427429 }
@@ -473,6 +475,7 @@ impl Connection {
473475 #[ doc = " @param unsubscribeOthers If \\ c true, unsubscribe from all other devices." ]
474476 #[ doc = " @returns The operation result code, a member of the eLeapRS enumeration." ]
475477 #[ doc = " @since 5.4.0" ]
478+ #[ cfg( feature = "gemini" ) ]
476479 pub fn set_primary_device (
477480 & mut self ,
478481 device : & Device ,
@@ -506,6 +509,7 @@ mod tests {
506509 }
507510
508511 #[ test]
512+ #[ cfg( feature = "gemini" ) ]
509513 fn get_version ( ) {
510514 let mut connection = initialize_connection ( ) ;
511515 connection
@@ -559,11 +563,14 @@ mod tests {
559563 connection. pixel_to_rectilinear ( PerspectiveType :: StereoLeft , & leap_vector) ;
560564 connection. rectilinear_to_pixel ( PerspectiveType :: StereoRight , & leap_vector) ;
561565
562- let mut camera_matrix = [ 0.0 ; 9 ] ;
563- connection. camera_matrix ( PerspectiveType :: StereoLeft , & mut camera_matrix) ;
566+ #[ cfg( feature = "gemini" ) ]
567+ {
568+ let mut camera_matrix = [ 0.0 ; 9 ] ;
569+ connection. camera_matrix ( PerspectiveType :: StereoLeft , & mut camera_matrix) ;
564570
565- let mut distortion_coeffs = [ 0.0 ; 8 ] ;
566- connection. distortion_coeffs ( PerspectiveType :: StereoRight , & mut distortion_coeffs) ;
571+ let mut distortion_coeffs = [ 0.0 ; 8 ] ;
572+ connection. distortion_coeffs ( PerspectiveType :: StereoRight , & mut distortion_coeffs) ;
573+ }
567574 }
568575
569576 #[ test]
@@ -670,6 +677,7 @@ mod tests {
670677 }
671678
672679 #[ test]
680+ #[ cfg( feature = "gemini" ) ]
673681 fn set_primary_device_test ( ) {
674682 let mut connection = initialize_connection_ex ( ) ;
675683
0 commit comments