use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(all(feature = "GCExtendedGamepad", feature = "GCPhysicalInputProfile"))]
pub struct GCXboxGamepad;
#[cfg(all(feature = "GCExtendedGamepad", feature = "GCPhysicalInputProfile"))]
unsafe impl ClassType for GCXboxGamepad {
#[inherits(GCPhysicalInputProfile, NSObject)]
type Super = GCExtendedGamepad;
type Mutability = InteriorMutable;
}
);
#[cfg(all(feature = "GCExtendedGamepad", feature = "GCPhysicalInputProfile"))]
unsafe impl NSObjectProtocol for GCXboxGamepad {}
extern_methods!(
#[cfg(all(feature = "GCExtendedGamepad", feature = "GCPhysicalInputProfile"))]
unsafe impl GCXboxGamepad {
#[cfg(all(feature = "GCControllerButtonInput", feature = "GCControllerElement"))]
#[method_id(@__retain_semantics Other paddleButton1)]
pub unsafe fn paddleButton1(&self) -> Option<Id<GCControllerButtonInput>>;
#[cfg(all(feature = "GCControllerButtonInput", feature = "GCControllerElement"))]
#[method_id(@__retain_semantics Other paddleButton2)]
pub unsafe fn paddleButton2(&self) -> Option<Id<GCControllerButtonInput>>;
#[cfg(all(feature = "GCControllerButtonInput", feature = "GCControllerElement"))]
#[method_id(@__retain_semantics Other paddleButton3)]
pub unsafe fn paddleButton3(&self) -> Option<Id<GCControllerButtonInput>>;
#[cfg(all(feature = "GCControllerButtonInput", feature = "GCControllerElement"))]
#[method_id(@__retain_semantics Other paddleButton4)]
pub unsafe fn paddleButton4(&self) -> Option<Id<GCControllerButtonInput>>;
#[cfg(all(feature = "GCControllerButtonInput", feature = "GCControllerElement"))]
#[method_id(@__retain_semantics Other buttonShare)]
pub unsafe fn buttonShare(&self) -> Option<Id<GCControllerButtonInput>>;
}
);
extern_methods!(
#[cfg(all(feature = "GCExtendedGamepad", feature = "GCPhysicalInputProfile"))]
unsafe impl GCXboxGamepad {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);