use crate::common::*;
use crate::AppKit::*;
use crate::Foundation::*;
use crate::GameController::*;
extern_protocol!(
pub unsafe trait GCPressedStateInput: NSObjectProtocol {
#[method(pressedDidChangeHandler)]
unsafe fn pressedDidChangeHandler(
&self,
) -> *mut Block<
(
NonNull<ProtocolObject<dyn GCPhysicalInputElement>>,
NonNull<ProtocolObject<dyn GCPressedStateInput>>,
Bool,
),
(),
>;
#[method(setPressedDidChangeHandler:)]
unsafe fn setPressedDidChangeHandler(
&self,
pressed_did_change_handler: Option<
&Block<
(
NonNull<ProtocolObject<dyn GCPhysicalInputElement>>,
NonNull<ProtocolObject<dyn GCPressedStateInput>>,
Bool,
),
(),
>,
>,
);
#[method(isPressed)]
unsafe fn isPressed(&self) -> bool;
#[method(lastPressedStateTimestamp)]
unsafe fn lastPressedStateTimestamp(&self) -> NSTimeInterval;
#[method(lastPressedStateLatency)]
unsafe fn lastPressedStateLatency(&self) -> NSTimeInterval;
#[cfg(feature = "Foundation_NSSet")]
#[method_id(@__retain_semantics Other sources)]
unsafe fn sources(&self) -> Id<NSSet<ProtocolObject<dyn GCPhysicalInputSource>>>;
}
unsafe impl ProtocolType for dyn GCPressedStateInput {}
);