1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::AppKit::*;
use crate::Foundation::*;
use crate::GameController::*;

extern_static!(GCMouseDidConnectNotification: &'static NSString);

extern_static!(GCMouseDidDisconnectNotification: &'static NSString);

extern_static!(GCMouseDidBecomeCurrentNotification: &'static NSString);

extern_static!(GCMouseDidStopBeingCurrentNotification: &'static NSString);

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "GameController_GCMouse")]
    pub struct GCMouse;

    #[cfg(feature = "GameController_GCMouse")]
    unsafe impl ClassType for GCMouse {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "GameController_GCMouse")]
unsafe impl GCDevice for GCMouse {}

#[cfg(feature = "GameController_GCMouse")]
unsafe impl NSObjectProtocol for GCMouse {}

extern_methods!(
    #[cfg(feature = "GameController_GCMouse")]
    unsafe impl GCMouse {
        #[cfg(feature = "GameController_GCMouseInput")]
        #[method_id(@__retain_semantics Other mouseInput)]
        pub unsafe fn mouseInput(&self) -> Option<Id<GCMouseInput>>;

        #[method_id(@__retain_semantics Other current)]
        pub unsafe fn current() -> Option<Id<GCMouse>>;

        #[cfg(feature = "Foundation_NSArray")]
        #[method_id(@__retain_semantics Other mice)]
        pub unsafe fn mice() -> Id<NSArray<GCMouse>>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "GameController_GCMouse")]
    unsafe impl GCMouse {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Option<Allocated<Self>>) -> Id<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);