Trait icrate::GameController::GCRelativeInput

source ·
pub unsafe trait GCRelativeInput: NSObjectProtocol {
    // Provided methods
    unsafe fn deltaDidChangeHandler(
        &self
    ) -> *mut Block<(NonNull<ProtocolObject<dyn GCPhysicalInputElement>>, NonNull<ProtocolObject<dyn GCRelativeInput>>, c_float), ()>
       where Self: Sized + Message { ... }
    unsafe fn setDeltaDidChangeHandler(
        &self,
        delta_did_change_handler: Option<&Block<(NonNull<ProtocolObject<dyn GCPhysicalInputElement>>, NonNull<ProtocolObject<dyn GCRelativeInput>>, c_float), ()>>
    )
       where Self: Sized + Message { ... }
    unsafe fn delta(&self) -> c_float
       where Self: Sized + Message { ... }
    unsafe fn isAnalog(&self) -> bool
       where Self: Sized + Message { ... }
    unsafe fn lastDeltaTimestamp(&self) -> NSTimeInterval
       where Self: Sized + Message { ... }
    unsafe fn lastDeltaLatency(&self) -> NSTimeInterval
       where Self: Sized + Message { ... }
    unsafe fn sources(
        &self
    ) -> Id<NSSet<ProtocolObject<dyn GCPhysicalInputSource>>>
       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 deltaDidChangeHandler( &self ) -> *mut Block<(NonNull<ProtocolObject<dyn GCPhysicalInputElement>>, NonNull<ProtocolObject<dyn GCRelativeInput>>, c_float), ()>
where Self: Sized + Message,

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

unsafe fn setDeltaDidChangeHandler( &self, delta_did_change_handler: Option<&Block<(NonNull<ProtocolObject<dyn GCPhysicalInputElement>>, NonNull<ProtocolObject<dyn GCRelativeInput>>, c_float), ()>> )
where Self: Sized + Message,

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

unsafe fn delta(&self) -> c_float
where Self: Sized + Message,

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

unsafe fn isAnalog(&self) -> bool
where Self: Sized + Message,

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

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

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

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

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

unsafe fn sources(&self) -> Id<NSSet<ProtocolObject<dyn GCPhysicalInputSource>>>
where Self: Sized + Message,

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

Trait Implementations§

source§

impl ProtocolType for dyn GCRelativeInput

source§

const NAME: &'static str = "GCRelativeInput"

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 GCRelativeInput

Implementations on Foreign Types§

source§

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

Implementors§