30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#import "OFFileManager.h"
#import "OFLocale.h"
#import "OFNumber.h"
#import "OHDualSenseGamepad.h"
#import "OHDualShock4Gamepad.h"
#import "OHEvdevExtendedGamepad.h"
#import "OHGameControllerAxis+Private.h"
#import "OHGameControllerAxis.h"
#import "OHGameControllerButton.h"
#import "OHGameControllerProfile.h"
#import "OHStadiaGamepad.h"
#include <sys/ioctl.h>
|
>
|
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#import "OFFileManager.h"
#import "OFLocale.h"
#import "OFNumber.h"
#import "OHDualSenseGamepad.h"
#import "OHDualShock4Gamepad.h"
#import "OHEvdevExtendedGamepad.h"
#import "OHExtendedN64Controller.h"
#import "OHGameControllerAxis+Private.h"
#import "OHGameControllerAxis.h"
#import "OHGameControllerButton.h"
#import "OHGameControllerProfile.h"
#import "OHStadiaGamepad.h"
#include <sys/ioctl.h>
|
199
200
201
202
203
204
205
206
207
208
209
210
211
212
|
if (_vendorID == OHVendorIDSony &&
_productID == OHProductIDDualSense)
_profile = [[OHDualSenseGamepad alloc] init];
else if (_vendorID == OHVendorIDSony &&
_productID == OHProductIDDualShock4)
_profile = [[OHDualShock4Gamepad alloc] init];
else if (_vendorID == OHVendorIDGoogle &&
_productID == OHProductIDStadiaController)
_profile = [[OHStadiaGamepad alloc] init];
else
_profile = [[OHEvdevExtendedGamepad alloc]
initWithKeyBits: _keyBits
evBits: _evBits
|
>
>
>
|
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
|
if (_vendorID == OHVendorIDSony &&
_productID == OHProductIDDualSense)
_profile = [[OHDualSenseGamepad alloc] init];
else if (_vendorID == OHVendorIDSony &&
_productID == OHProductIDDualShock4)
_profile = [[OHDualShock4Gamepad alloc] init];
else if (_vendorID == OHVendorIDNintendo &&
_productID == OHProductIDN64Controller)
_profile = [[OHExtendedN64Controller alloc] init];
else if (_vendorID == OHVendorIDGoogle &&
_productID == OHProductIDStadiaController)
_profile = [[OHStadiaGamepad alloc] init];
else
_profile = [[OHEvdevExtendedGamepad alloc]
initWithKeyBits: _keyBits
evBits: _evBits
|