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§

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 elementValueDidChangeHandler( &self ) -> *mut Block<(NonNull<ProtocolObject<dyn GCDevicePhysicalInput>>, NonNull<ProtocolObject<dyn GCPhysicalInputElement>>), ()>
where Self: Sized + Message,

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

unsafe fn setElementValueDidChangeHandler( &self, element_value_did_change_handler: Option<&Block<(NonNull<ProtocolObject<dyn GCDevicePhysicalInput>>, NonNull<ProtocolObject<dyn GCPhysicalInputElement>>), ()>> )
where Self: Sized + Message,

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

unsafe fn capture(&self) -> Id<ProtocolObject<dyn GCDevicePhysicalInputState>>
where Self: Sized + Message,

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

unsafe fn inputStateAvailableHandler( &self ) -> *mut Block<(NonNull<ProtocolObject<dyn GCDevicePhysicalInput>>,), ()>
where Self: Sized + Message,

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

unsafe fn setInputStateAvailableHandler( &self, input_state_available_handler: Option<&Block<(NonNull<ProtocolObject<dyn GCDevicePhysicalInput>>,), ()>> )
where Self: Sized + Message,

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

unsafe fn inputStateQueueDepth(&self) -> NSInteger
where Self: Sized + Message,

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

unsafe fn setInputStateQueueDepth(&self, input_state_queue_depth: NSInteger)
where Self: Sized + Message,

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

unsafe fn nextInputState(&self) -> Option<Id<AnyObject>>
where Self: Sized + Message,

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

Trait Implementations§

source§

impl ProtocolType for dyn GCDevicePhysicalInput

source§

const NAME: &'static str = "GCDevicePhysicalInput"

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 GCDevicePhysicalInput

Implementations on Foreign Types§

source§

impl<T> GCDevicePhysicalInput for ProtocolObject<T>

Implementors§

source§

impl GCDevicePhysicalInput for GCControllerLiveInput

Available on crate feature GameController_GCControllerLiveInput only.
source§

impl GCDevicePhysicalInput for GCRacingWheelInput

Available on crate feature GameController_GCRacingWheelInput only.