Overview
Comment: | ObjFWHID: Add profiles for Joy-Cons |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
96c7c533b11fa5f0b6c35f74107fc500 |
User & Date: | js on 2024-06-30 12:17:20 |
Other Links: | manifest | tags |
Context
2024-07-01
| ||
18:41 | ObjFWHID: Make most profiles public check-in: dfaf830200 user: js tags: trunk | |
2024-06-30
| ||
12:17 | ObjFWHID: Add profiles for Joy-Cons check-in: 96c7c533b1 user: js tags: trunk | |
2024-06-23
| ||
22:04 | runtime: Properly hide symbols check-in: a38d711e37 user: js tags: trunk | |
Changes
Modified src/hid/Makefile from [9ac3135daf] to [f27c2669b4].
︙ | |||
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | + + | SRCS += OHDualSenseGamepad.m \ OHDualShock4Gamepad.m \ OHEmulatedGameControllerAxis.m \ OHEmulatedGameControllerButton.m \ OHEmulatedGameControllerTriggerButton.m \ OHExtendedN64Controller.m \ OHLeftJoyCon.m \ OHN64Controller.m \ OHRightJoyCon.m \ OHStadiaGamepad.m \ OHXboxGamepad.m \ ${USE_SRCS_EVDEV} \ ${USE_SRCS_NINTENDO_3DS} \ ${USE_SRCS_NINTENDO_DS} \ ${USE_SRCS_NINTENDO_SWITCH} \ ${USE_SRCS_WII} \ |
︙ |
Modified src/hid/OHCombinedJoyCons.m from [90a7f9c337] to [0639ff2a5d].
︙ | |||
47 48 49 50 51 52 53 | 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | - | { self = [super init]; @try { void *pool = objc_autoreleasePoolPush(); OFDictionary *leftButtons, *rightButtons; OFMutableDictionary *buttons, *directionalPads; |
︙ | |||
71 72 73 74 75 76 77 | 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | - - - - - + - - - - - - + - - + - - - - - - + - - - - - - - - - - - | leftButtons = _leftJoyCon.buttons; rightButtons = _rightJoyCon.buttons; buttons = [OFMutableDictionary dictionaryWithCapacity: leftButtons.count + rightButtons.count]; [buttons addEntriesFromDictionary: leftButtons]; [buttons addEntriesFromDictionary: rightButtons]; |
︙ |
Modified src/hid/OHEvdevGameController.m from [7e3c50d414] to [2b74578768].
︙ | |||
35 36 37 38 39 40 41 42 43 44 45 46 47 48 | 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | + + | #import "OHDualShock4Gamepad.h" #import "OHEvdevExtendedGamepad.h" #import "OHExtendedN64Controller.h" #import "OHGameControllerAxis+Private.h" #import "OHGameControllerAxis.h" #import "OHGameControllerButton.h" #import "OHGameControllerProfile.h" #import "OHLeftJoyCon.h" #import "OHRightJoyCon.h" #import "OHStadiaGamepad.h" #include <sys/ioctl.h> #include <linux/input.h> #import "OFInitializationFailedException.h" #import "OFInvalidArgumentException.h" |
︙ | |||
203 204 205 206 207 208 209 210 211 212 213 214 215 216 | 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 | + + + + + + | _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 == OHVendorIDNintendo && _productID == OHProductIDLeftJoyCon) _profile = [[OHLeftJoyCon alloc] init]; else if (_vendorID == OHVendorIDNintendo && _productID == OHProductIDRightJoyCon) _profile = [[OHRightJoyCon alloc] init]; else if (_vendorID == OHVendorIDGoogle && _productID == OHProductIDStadiaController) _profile = [[OHStadiaGamepad alloc] init]; else _profile = [[OHEvdevExtendedGamepad alloc] initWithKeyBits: _keyBits evBits: _evBits |
︙ |
Modified src/hid/OHEvdevGameControllerProfile.m from [566139f646] to [b041d2d6ee].
︙ | |||
25 26 27 28 29 30 31 | 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | #import "OHGameControllerButton.h" #include <linux/input.h> static OFString * buttonToName(uint16_t button, uint16_t vendorID, uint16_t productID) { |
︙ |
Added src/hid/OHLeftJoyCon.h version [6ef79f8ba1].
|
Added src/hid/OHLeftJoyCon.m version [5fba4772d9].