pub unsafe trait GCDevicePhysicalInputState: NSObjectProtocol {
    // Provided methods
    unsafe fn device(&self) -> Option<Id<ProtocolObject<dyn GCDevice>>>
       where Self: Sized + Message { ... }
    unsafe fn lastEventTimestamp(&self) -> NSTimeInterval
       where Self: Sized + Message { ... }
    unsafe fn lastEventLatency(&self) -> NSTimeInterval
       where Self: Sized + Message { ... }
    unsafe fn elements(
        &self
    ) -> Id<GCPhysicalInputElementCollection<NSString, ProtocolObject<dyn GCPhysicalInputElement>>>
       where Self: Sized + Message { ... }
    unsafe fn buttons(
        &self
    ) -> Id<GCPhysicalInputElementCollection<NSString, ProtocolObject<dyn GCButtonElement>>>
       where Self: Sized + Message { ... }
    unsafe fn axes(
        &self
    ) -> Id<GCPhysicalInputElementCollection<NSString, ProtocolObject<dyn GCAxisElement>>>
       where Self: Sized + Message { ... }
    unsafe fn switches(
        &self
    ) -> Id<GCPhysicalInputElementCollection<NSString, ProtocolObject<dyn GCSwitchElement>>>
       where Self: Sized + Message { ... }
    unsafe fn dpads(
        &self
    ) -> Id<GCPhysicalInputElementCollection<NSString, ProtocolObject<dyn GCDirectionPadElement>>>
       where Self: Sized + Message { ... }
    unsafe fn objectForKeyedSubscript(
        &self,
        key: &NSString
    ) -> Option<Id<ProtocolObject<dyn GCPhysicalInputElement>>>
       where Self: Sized + Message { ... }
}
👎Deprecated: icrate::GameController has been moved to objc2-game-controller
Available on crate feature GameController only.

Provided Methods§

source

unsafe fn device(&self) -> Option<Id<ProtocolObject<dyn GCDevice>>>
where Self: Sized + Message,

👎Deprecated: icrate::GameController has been moved to objc2-game-controller
source

unsafe fn lastEventTimestamp(&self) -> NSTimeInterval
where Self: Sized + Message,

👎Deprecated: icrate::GameController has been moved to objc2-game-controller
source

unsafe fn lastEventLatency(&self) -> NSTimeInterval
where Self: Sized + Message,

👎Deprecated: icrate::GameController has been moved to objc2-game-controller
source

unsafe fn elements( &self ) -> Id<GCPhysicalInputElementCollection<NSString, ProtocolObject<dyn GCPhysicalInputElement>>>
where Self: Sized + Message,

👎Deprecated: icrate::GameController has been moved to objc2-game-controller
Available on crate features Foundation_NSString and GameController_GCPhysicalInputElementCollection only.
source

unsafe fn buttons( &self ) -> Id<GCPhysicalInputElementCollection<NSString, ProtocolObject<dyn GCButtonElement>>>
where Self: Sized + Message,

👎Deprecated: icrate::GameController has been moved to objc2-game-controller
Available on crate features Foundation_NSString and GameController_GCPhysicalInputElementCollection only.
source

unsafe fn axes( &self ) -> Id<GCPhysicalInputElementCollection<NSString, ProtocolObject<dyn GCAxisElement>>>
where Self: Sized + Message,

👎Deprecated: icrate::GameController has been moved to objc2-game-controller
Available on crate features Foundation_NSString and GameController_GCPhysicalInputElementCollection only.
source

unsafe fn switches( &self ) -> Id<GCPhysicalInputElementCollection<NSString, ProtocolObject<dyn GCSwitchElement>>>
where Self: Sized + Message,

👎Deprecated: icrate::GameController has been moved to objc2-game-controller
Available on crate features Foundation_NSString and GameController_GCPhysicalInputElementCollection only.
source

unsafe fn dpads( &self ) -> Id<GCPhysicalInputElementCollection<NSString, ProtocolObject<dyn GCDirectionPadElement>>>
where Self: Sized + Message,

👎Deprecated: icrate::GameController has been moved to objc2-game-controller
Available on crate features Foundation_NSString and GameController_GCPhysicalInputElementCollection only.
source

unsafe fn objectForKeyedSubscript( &self, key: &NSString ) -> Option<Id<ProtocolObject<dyn GCPhysicalInputElement>>>
where Self: Sized + Message,

👎Deprecated: icrate::GameController has been moved to objc2-game-controller
Available on crate feature Foundation_NSString only.

Trait Implementations§

source§

impl ProtocolType for dyn GCDevicePhysicalInputState

source§

const NAME: &'static str = "GCDevicePhysicalInputState"

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 GCDevicePhysicalInputState

Implementations on Foreign Types§

source§

impl<T> GCDevicePhysicalInputState for ProtocolObject<T>

Implementors§

source§

impl GCDevicePhysicalInputState for GCControllerInputState

Available on crate feature GameController_GCControllerInputState only.
source§

impl GCDevicePhysicalInputState for GCControllerLiveInput

Available on crate feature GameController_GCControllerLiveInput only.
source§

impl GCDevicePhysicalInputState for GCRacingWheelInput

Available on crate feature GameController_GCRacingWheelInput only.
source§

impl GCDevicePhysicalInputState for GCRacingWheelInputState

Available on crate feature GameController_GCRacingWheelInputState only.