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 { ... }
}
Available on crate feature
GCDevicePhysicalInputState
only.Provided Methods§
unsafe fn device(&self) -> Option<Id<ProtocolObject<dyn GCDevice>>>
Available on crate feature
GCDevice
only.unsafe fn lastEventTimestamp(&self) -> NSTimeInterval
unsafe fn lastEventLatency(&self) -> NSTimeInterval
unsafe fn elements( &self ) -> Id<GCPhysicalInputElementCollection<NSString, ProtocolObject<dyn GCPhysicalInputElement>>>
Available on crate features
GCInputNames
and GCPhysicalInputElement
only.Available on crate features
GCButtonElement
and GCInputNames
and GCPhysicalInputElement
only.unsafe fn axes( &self ) -> Id<GCPhysicalInputElementCollection<NSString, ProtocolObject<dyn GCAxisElement>>>
Available on crate features
GCAxisElement
and GCInputNames
and GCPhysicalInputElement
only.unsafe fn switches( &self ) -> Id<GCPhysicalInputElementCollection<NSString, ProtocolObject<dyn GCSwitchElement>>>
Available on crate features
GCInputNames
and GCPhysicalInputElement
and GCSwitchElement
only.unsafe fn dpads( &self ) -> Id<GCPhysicalInputElementCollection<NSString, ProtocolObject<dyn GCDirectionPadElement>>>
Available on crate features
GCDirectionPadElement
and GCInputNames
and GCPhysicalInputElement
only.unsafe fn objectForKeyedSubscript( &self, key: &NSString ) -> Option<Id<ProtocolObject<dyn GCPhysicalInputElement>>>
Available on crate feature
GCPhysicalInputElement
only.Trait Implementations§
source§impl ProtocolType for dyn GCDevicePhysicalInputState
impl ProtocolType for dyn GCDevicePhysicalInputState
impl<T> ImplementedBy<T> for dyn GCDevicePhysicalInputState
Implementations on Foreign Types§
impl<T> GCDevicePhysicalInputState for ProtocolObject<T>where
T: ?Sized + GCDevicePhysicalInputState,
Implementors§
impl GCDevicePhysicalInputState for GCControllerInputState
Available on crate feature
GCControllerInput
only.impl GCDevicePhysicalInputState for GCControllerLiveInput
Available on crate feature
GCControllerInput
only.impl GCDevicePhysicalInputState for GCRacingWheelInput
Available on crate feature
GCRacingWheelInput
only.impl GCDevicePhysicalInputState for GCRacingWheelInputState
Available on crate feature
GCRacingWheelInput
only.