27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#if defined(OF_LINUX) && defined(OF_HAVE_FILES)
# import "OHEvdevGameController.h"
#endif
#ifdef OF_WINDOWS
# import "OHXInputGameController.h"
#endif
@implementation OHGameController
@dynamic name, rawProfile;
+ (OFArray OF_GENERIC(OHGameController *) *)controllers
{
#if defined(OF_LINUX) && defined(OF_HAVE_FILES)
return [OHEvdevGameController controllers];
#elif defined(OF_WINDOWS)
return [OHXInputGameController controllers];
#else
return [OFArray array];
#endif
}
- (instancetype)init
{
|
>
>
>
>
>
|
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
|
#if defined(OF_LINUX) && defined(OF_HAVE_FILES)
# import "OHEvdevGameController.h"
#endif
#ifdef OF_WINDOWS
# import "OHXInputGameController.h"
#endif
#ifdef OF_NINTENDO_3DS
# import "OHNintendo3DSGameController.h"
#endif
@implementation OHGameController
@dynamic name, rawProfile;
+ (OFArray OF_GENERIC(OHGameController *) *)controllers
{
#if defined(OF_LINUX) && defined(OF_HAVE_FILES)
return [OHEvdevGameController controllers];
#elif defined(OF_WINDOWS)
return [OHXInputGameController controllers];
#elif defined(OF_NINTENDO_3DS)
return [OHNintendo3DSGameController controllers];
#else
return [OFArray array];
#endif
}
- (instancetype)init
{
|