Comment: | -[OHGameController {retrieve -> update}State] |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | trunk |
Files: | files | file ages | folders |
SHA3-256: |
23e3ffff7a75aae296183ca72c65f6e5 |
User & Date: | js on 2024-10-22 22:29:41 |
Other Links: | manifest | tags |
2024-10-22
| ||
22:29 | -[OHGameController {retrieve -> update}State] Leaf check-in: 23e3ffff7a user: js tags: trunk | |
2024-10-19
| ||
14:07 | GitHub Actions: Fix OpenBSD check-in: e389aa247e user: js tags: trunk | |
Modified src/hid/OHEvdevGameController.m from [5d84c38c52] to [8882f3e69e].
︙ | |||
326 327 328 329 330 331 332 | 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 | - + | axis.oh_maxRawValue = info.maximum; axis.value = scale(info.value, info.minimum, info.maximum); } } } |
︙ |
Modified src/hid/OHGameController.h from [b50a9d0041] to [5a0ee8476d].
︙ | |||
90 91 92 93 94 95 96 | 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 | - + - + | * @brief Returns the available controllers. * * @return The available controllers */ + (OFArray OF_GENERIC(OHGameController *) *)controllers; /** |
︙ |
Modified src/hid/OHGameController.m from [84aa11a3e7] to [12f0e8227c].
︙ | |||
97 98 99 100 101 102 103 | 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 | - + | } - (OFNumber *)productID { return nil; } |
︙ |
Modified src/hid/OHNintendo3DSGameController.m from [2f027499a1] to [2ceda08904].
︙ | |||
60 61 62 63 64 65 66 | 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | - + - + | - (instancetype)init { self = [super init]; @try { _extendedGamepad = [[OHNintendo3DSExtendedGamepad alloc] init]; |
︙ |
Modified src/hid/OHNintendoDSGameController.m from [7056d0ab9e] to [e8178e5420].
︙ | |||
59 60 61 62 63 64 65 | 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | - + - + | - (instancetype)init { self = [super init]; @try { _gamepad = [[OHNintendoDSGamepad alloc] init]; |
︙ |
Modified src/hid/OHNintendoSwitchGameController.m from [a788c8cea8] to [6bf69b44e2].
︙ | |||
83 84 85 86 87 88 89 | 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | - + - + | if (!padIsConnected(&_pad)) @throw [OFInitializationFailedException exceptionWithClass: self.class]; _extendedGamepad = [[OHNintendoSwitchExtendedGamepad alloc] init]; |
︙ |
Modified src/hid/OHWiiGameController.m from [d2411fda9b] to [e32aeb7c28].
︙ | |||
97 98 99 100 101 102 103 | 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | - + - + | if (type == WPAD_EXP_CLASSIC) _profile = [[OHWiiClassicController alloc] init]; else if (type == WPAD_EXP_NUNCHUK) _profile = [[OHWiimoteWithNunchuk alloc] init]; else _profile = [[OHWiimote alloc] init]; |
︙ |
Modified src/hid/OHXInputGameController.m from [cc3b87f597] to [1bec2a2275].
︙ | |||
140 141 142 143 144 145 146 | 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 | - + - + | capabilities.productID]; } } _extendedGamepad = [[OHXboxGamepad alloc] initWithHasGuideButton: (XInputVersion != 910)]; |
︙ |
Modified src/test/OTAppDelegate.m from [545f03258c] to [81ba721124].
︙ | |||
290 291 292 293 294 295 296 | 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 | - + | # endif void *pool = objc_autoreleasePoolPush(); OHGameController *controller = [[OHGameController controllers] objectAtIndex: 0]; OHGameControllerButton *button = [controller.profile.buttons objectForKey: @"A"]; |
︙ | |||
548 549 550 551 552 553 554 | 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 | - + | OHGameControllerButton *button = # ifdef OF_WII [controller.profile.buttons objectForKey: @"Home"]; # else [controller.profile.buttons objectForKey: @"Start"]; # endif |
︙ |
Modified tests/gamecontroller/GameControllerTests.m from [fd38b501b0] to [5f0d39c588].
︙ | |||
217 218 219 220 221 222 223 | 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 | - + | id <OHGameControllerProfile> profile = controller.profile; [OFStdOut setForegroundColor: [OFColor green]]; [OFStdOut writeLine: controller.description]; @try { |
︙ |