use crate::common::*;
use crate::AppKit::*;
use crate::Foundation::*;
use crate::GameController::*;
extern_static!(GCRacingWheelDidConnectNotification: &'static NSString);
extern_static!(GCRacingWheelDidDisconnectNotification: &'static NSString);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "GameController_GCRacingWheel")]
pub struct GCRacingWheel;
#[cfg(feature = "GameController_GCRacingWheel")]
unsafe impl ClassType for GCRacingWheel {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "GameController_GCRacingWheel")]
unsafe impl GCDevice for GCRacingWheel {}
#[cfg(feature = "GameController_GCRacingWheel")]
unsafe impl NSObjectProtocol for GCRacingWheel {}
extern_methods!(
#[cfg(feature = "GameController_GCRacingWheel")]
unsafe impl GCRacingWheel {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[cfg(feature = "Foundation_NSSet")]
#[method_id(@__retain_semantics Other connectedRacingWheels)]
pub unsafe fn connectedRacingWheels() -> Id<NSSet<GCRacingWheel>>;
#[cfg(feature = "Foundation_NSError")]
#[method(acquireDeviceWithError:_)]
pub unsafe fn acquireDeviceWithError(&self) -> Result<(), Id<NSError>>;
#[method(relinquishDevice)]
pub unsafe fn relinquishDevice(&self);
#[method(isAcquired)]
pub unsafe fn isAcquired(&self) -> bool;
#[cfg(feature = "GameController_GCRacingWheelInput")]
#[method_id(@__retain_semantics Other wheelInput)]
pub unsafe fn wheelInput(&self) -> Id<GCRacingWheelInput>;
#[method(isSnapshot)]
pub unsafe fn isSnapshot(&self) -> bool;
#[method_id(@__retain_semantics Other capture)]
pub unsafe fn capture(&self) -> Id<GCRacingWheel>;
}
);
extern_methods!(
#[cfg(feature = "GameController_GCRacingWheel")]
unsafe impl GCRacingWheel {
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);