use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use crate::*;
extern_class!(
#[unsafe(super(GCExtendedGamepad, GCPhysicalInputProfile, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(all(feature = "GCExtendedGamepad", feature = "GCPhysicalInputProfile"))]
pub struct GCXboxGamepad;
);
#[cfg(all(feature = "GCExtendedGamepad", feature = "GCPhysicalInputProfile"))]
extern_conformance!(
unsafe impl NSObjectProtocol for GCXboxGamepad {}
);
#[cfg(all(feature = "GCExtendedGamepad", feature = "GCPhysicalInputProfile"))]
impl GCXboxGamepad {
extern_methods!(
#[cfg(all(feature = "GCControllerButtonInput", feature = "GCControllerElement"))]
#[unsafe(method(paddleButton1))]
#[unsafe(method_family = none)]
pub unsafe fn paddleButton1(&self) -> Option<Retained<GCControllerButtonInput>>;
#[cfg(all(feature = "GCControllerButtonInput", feature = "GCControllerElement"))]
#[unsafe(method(paddleButton2))]
#[unsafe(method_family = none)]
pub unsafe fn paddleButton2(&self) -> Option<Retained<GCControllerButtonInput>>;
#[cfg(all(feature = "GCControllerButtonInput", feature = "GCControllerElement"))]
#[unsafe(method(paddleButton3))]
#[unsafe(method_family = none)]
pub unsafe fn paddleButton3(&self) -> Option<Retained<GCControllerButtonInput>>;
#[cfg(all(feature = "GCControllerButtonInput", feature = "GCControllerElement"))]
#[unsafe(method(paddleButton4))]
#[unsafe(method_family = none)]
pub unsafe fn paddleButton4(&self) -> Option<Retained<GCControllerButtonInput>>;
#[cfg(all(feature = "GCControllerButtonInput", feature = "GCControllerElement"))]
#[unsafe(method(buttonShare))]
#[unsafe(method_family = none)]
pub unsafe fn buttonShare(&self) -> Option<Retained<GCControllerButtonInput>>;
);
}
#[cfg(all(feature = "GCExtendedGamepad", feature = "GCPhysicalInputProfile"))]
impl GCXboxGamepad {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}