Trait objc2_game_controller::GCDevice

source ·
pub unsafe trait GCDevice: NSObjectProtocol {
    // Provided methods
    unsafe fn vendorName(&self) -> Option<Retained<NSString>>
       where Self: Sized + Message { ... }
    unsafe fn productCategory(&self) -> Retained<NSString>
       where Self: Sized + Message { ... }
    unsafe fn physicalInputProfile(&self) -> Retained<GCPhysicalInputProfile>
       where Self: Sized + Message { ... }
}
Available on crate feature GCDevice only.

Provided Methods§

source

unsafe fn vendorName(&self) -> Option<Retained<NSString>>
where Self: Sized + Message,

source

unsafe fn productCategory(&self) -> Retained<NSString>
where Self: Sized + Message,

source

unsafe fn physicalInputProfile(&self) -> Retained<GCPhysicalInputProfile>
where Self: Sized + Message,

👎Deprecated: Use the physicalInputProfile property on GCController instead. For GCKeyboard, use the keyboardInput property. For GCMouse, use the mouseInput property.
Available on crate feature GCPhysicalInputProfile only.

Trait Implementations§

source§

impl ProtocolType for dyn GCDevice

source§

const NAME: &'static str = "GCDevice"

The name of the Objective-C protocol that this type represents.
source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
source§

impl<T> ImplementedBy<T> for dyn GCDevice
where T: ?Sized + Message + GCDevice,

Implementations on Foreign Types§

source§

impl<T> GCDevice for ProtocolObject<T>
where T: ?Sized + GCDevice,

Implementors§

source§

impl GCDevice for GCController

Available on crate feature GCController only.
source§

impl GCDevice for GCKeyboard

Available on crate feature GCKeyboard only.
source§

impl GCDevice for GCMouse

Available on crate feature GCMouse only.
source§

impl GCDevice for GCRacingWheel

Available on crate feature GCRacingWheel only.