Overview
Comment: | OHEvdevDualSense: Minor cleanup |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
b67a849b5134b11c35b1f6ff4bb06178 |
User & Date: | js on 2024-06-08 23:14:31 |
Other Links: | manifest | tags |
Context
2024-06-09
| ||
01:34 | ObjFWHID: Add support for DualShock 4 via evdev check-in: 5fe4c8c1bf user: js tags: trunk | |
2024-06-08
| ||
23:14 | OHEvdevDualSense: Minor cleanup check-in: b67a849b51 user: js tags: trunk | |
23:04 | OHEvdevGamepad: Fix name of trigger buttons check-in: 31f8c31ac7 user: js tags: trunk | |
Changes
Modified src/hid/OHEvdevDualSense.m from [c90245aab6] to [5529e3d7e0].
︙ | ︙ | |||
27 28 29 30 31 32 33 | @implementation OHEvdevDualSense - (OFDictionary OF_GENERIC(OFString *, OHGameControllerButton *) *)buttons { OFMutableDictionary *buttons = [[_rawProfile.buttons mutableCopy] autorelease]; | < < < < < | 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | @implementation OHEvdevDualSense - (OFDictionary OF_GENERIC(OFString *, OHGameControllerButton *) *)buttons { OFMutableDictionary *buttons = [[_rawProfile.buttons mutableCopy] autorelease]; [buttons setObject: self.leftTriggerButton forKey: @"L2"]; [buttons setObject: self.rightTriggerButton forKey: @"R2"]; [buttons makeImmutable]; return buttons; } |
︙ | ︙ | |||
67 68 69 70 71 72 73 | - (OHGameControllerButton *)leftShoulderButton { return [_rawProfile.buttons objectForKey: @"L1"]; } - (OHGameControllerButton *)leftTriggerButton { | < < < | | < | < < < < | | < | < | 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | - (OHGameControllerButton *)leftShoulderButton { return [_rawProfile.buttons objectForKey: @"L1"]; } - (OHGameControllerButton *)leftTriggerButton { return [[[OHGameControllerEmulatedTriggerButton alloc] initWithName: @"L2" axis: [_rawProfile.axes objectForKey: @"Z"]] autorelease]; } - (OHGameControllerButton *)rightTriggerButton { return [[[OHGameControllerEmulatedTriggerButton alloc] initWithName: @"R2" axis: [_rawProfile.axes objectForKey: @"RZ"]] autorelease]; } - (OHGameControllerButton *)rightShoulderButton { return [_rawProfile.buttons objectForKey: @"R1"]; } |
︙ | ︙ |