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