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 GCDualShockGamepad;
);
#[cfg(all(feature = "GCExtendedGamepad", feature = "GCPhysicalInputProfile"))]
extern_conformance!(
unsafe impl NSObjectProtocol for GCDualShockGamepad {}
);
#[cfg(all(feature = "GCExtendedGamepad", feature = "GCPhysicalInputProfile"))]
impl GCDualShockGamepad {
extern_methods!(
#[cfg(all(feature = "GCControllerButtonInput", feature = "GCControllerElement"))]
#[unsafe(method(touchpadButton))]
#[unsafe(method_family = none)]
pub unsafe fn touchpadButton(&self) -> Option<Retained<GCControllerButtonInput>>;
#[cfg(all(feature = "GCControllerDirectionPad", feature = "GCControllerElement"))]
#[unsafe(method(touchpadPrimary))]
#[unsafe(method_family = none)]
pub unsafe fn touchpadPrimary(&self) -> Option<Retained<GCControllerDirectionPad>>;
#[cfg(all(feature = "GCControllerDirectionPad", feature = "GCControllerElement"))]
#[unsafe(method(touchpadSecondary))]
#[unsafe(method_family = none)]
pub unsafe fn touchpadSecondary(&self) -> Option<Retained<GCControllerDirectionPad>>;
);
}
#[cfg(all(feature = "GCExtendedGamepad", feature = "GCPhysicalInputProfile"))]
impl GCDualShockGamepad {
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>;
);
}