Trait icrate::GameController::GCDevicePhysicalInput
source · pub unsafe trait GCDevicePhysicalInput: GCDevicePhysicalInputState {
// Provided methods
unsafe fn device(&self) -> Option<Id<ProtocolObject<dyn GCDevice>>>
where Self: Sized + Message { ... }
unsafe fn elementValueDidChangeHandler(
&self
) -> *mut Block<(NonNull<ProtocolObject<dyn GCDevicePhysicalInput>>, NonNull<ProtocolObject<dyn GCPhysicalInputElement>>), ()>
where Self: Sized + Message { ... }
unsafe fn setElementValueDidChangeHandler(
&self,
element_value_did_change_handler: Option<&Block<(NonNull<ProtocolObject<dyn GCDevicePhysicalInput>>, NonNull<ProtocolObject<dyn GCPhysicalInputElement>>), ()>>
)
where Self: Sized + Message { ... }
unsafe fn capture(
&self
) -> Id<ProtocolObject<dyn GCDevicePhysicalInputState>>
where Self: Sized + Message { ... }
unsafe fn inputStateAvailableHandler(
&self
) -> *mut Block<(NonNull<ProtocolObject<dyn GCDevicePhysicalInput>>,), ()>
where Self: Sized + Message { ... }
unsafe fn setInputStateAvailableHandler(
&self,
input_state_available_handler: Option<&Block<(NonNull<ProtocolObject<dyn GCDevicePhysicalInput>>,), ()>>
)
where Self: Sized + Message { ... }
unsafe fn inputStateQueueDepth(&self) -> NSInteger
where Self: Sized + Message { ... }
unsafe fn setInputStateQueueDepth(&self, input_state_queue_depth: NSInteger)
where Self: Sized + Message { ... }
unsafe fn nextInputState(&self) -> Option<Id<AnyObject>>
where Self: Sized + Message { ... }
}
👎Deprecated:
icrate::GameController
has been moved to objc2-game-controller
Available on crate feature
GameController
only.Provided Methods§
unsafe fn device(&self) -> Option<Id<ProtocolObject<dyn GCDevice>>>
👎Deprecated:
icrate::GameController
has been moved to objc2-game-controller
unsafe fn elementValueDidChangeHandler( &self ) -> *mut Block<(NonNull<ProtocolObject<dyn GCDevicePhysicalInput>>, NonNull<ProtocolObject<dyn GCPhysicalInputElement>>), ()>
👎Deprecated:
icrate::GameController
has been moved to objc2-game-controller
unsafe fn setElementValueDidChangeHandler( &self, element_value_did_change_handler: Option<&Block<(NonNull<ProtocolObject<dyn GCDevicePhysicalInput>>, NonNull<ProtocolObject<dyn GCPhysicalInputElement>>), ()>> )
👎Deprecated:
icrate::GameController
has been moved to objc2-game-controller
unsafe fn capture(&self) -> Id<ProtocolObject<dyn GCDevicePhysicalInputState>>
👎Deprecated:
icrate::GameController
has been moved to objc2-game-controller
unsafe fn inputStateAvailableHandler( &self ) -> *mut Block<(NonNull<ProtocolObject<dyn GCDevicePhysicalInput>>,), ()>
👎Deprecated:
icrate::GameController
has been moved to objc2-game-controller
unsafe fn setInputStateAvailableHandler( &self, input_state_available_handler: Option<&Block<(NonNull<ProtocolObject<dyn GCDevicePhysicalInput>>,), ()>> )
👎Deprecated:
icrate::GameController
has been moved to objc2-game-controller
unsafe fn inputStateQueueDepth(&self) -> NSInteger
👎Deprecated:
icrate::GameController
has been moved to objc2-game-controller
unsafe fn setInputStateQueueDepth(&self, input_state_queue_depth: NSInteger)
👎Deprecated:
icrate::GameController
has been moved to objc2-game-controller
unsafe fn nextInputState(&self) -> Option<Id<AnyObject>>
👎Deprecated:
icrate::GameController
has been moved to objc2-game-controller
Trait Implementations§
source§impl ProtocolType for dyn GCDevicePhysicalInput
impl ProtocolType for dyn GCDevicePhysicalInput
impl<T> ImplementedBy<T> for dyn GCDevicePhysicalInput
Implementations on Foreign Types§
impl<T> GCDevicePhysicalInput for ProtocolObject<T>where
T: ?Sized + GCDevicePhysicalInput,
Implementors§
impl GCDevicePhysicalInput for GCControllerLiveInput
Available on crate feature
GameController_GCControllerLiveInput
only.impl GCDevicePhysicalInput for GCRacingWheelInput
Available on crate feature
GameController_GCRacingWheelInput
only.