Trait icrate::GameController::GCAxisInput

source ·
pub unsafe trait GCAxisInput: NSObjectProtocol {
    // Provided methods
    unsafe fn valueDidChangeHandler(
        &self
    ) -> *mut Block<(NonNull<ProtocolObject<dyn GCPhysicalInputElement>>, NonNull<ProtocolObject<dyn GCAxisInput>>, c_float), ()>
       where Self: Sized + Message { ... }
    unsafe fn setValueDidChangeHandler(
        &self,
        value_did_change_handler: Option<&Block<(NonNull<ProtocolObject<dyn GCPhysicalInputElement>>, NonNull<ProtocolObject<dyn GCAxisInput>>, c_float), ()>>
    )
       where Self: Sized + Message { ... }
    unsafe fn value(&self) -> c_float
       where Self: Sized + Message { ... }
    unsafe fn isAnalog(&self) -> bool
       where Self: Sized + Message { ... }
    unsafe fn canWrap(&self) -> bool
       where Self: Sized + Message { ... }
    unsafe fn lastValueTimestamp(&self) -> NSTimeInterval
       where Self: Sized + Message { ... }
    unsafe fn lastValueLatency(&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 valueDidChangeHandler( &self ) -> *mut Block<(NonNull<ProtocolObject<dyn GCPhysicalInputElement>>, NonNull<ProtocolObject<dyn GCAxisInput>>, c_float), ()>
where Self: Sized + Message,

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

unsafe fn setValueDidChangeHandler( &self, value_did_change_handler: Option<&Block<(NonNull<ProtocolObject<dyn GCPhysicalInputElement>>, NonNull<ProtocolObject<dyn GCAxisInput>>, c_float), ()>> )
where Self: Sized + Message,

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

unsafe fn value(&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 canWrap(&self) -> bool
where Self: Sized + Message,

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

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

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

unsafe fn lastValueLatency(&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 GCAxisInput

source§

const NAME: &'static str = "GCAxisInput"

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 GCAxisInput
where T: ?Sized + Message + GCAxisInput,

Implementations on Foreign Types§

source§

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

Implementors§