Trait 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ยง