Differences From Artifact [1aae3bc76f]:
- File src/hid/OHEvdevGameController.m — part of check-in [1ba9cce376] at 2024-06-09 11:17:00 on branch trunk — ObjFWHID: Add OHCombinedJoyCons (user: js, size: 18836) [annotate] [blame] [check-ins using]
To Artifact [c35ba635a9]:
- File
src/hid/OHEvdevGameController.m
— part of check-in
[998339ff24]
at
2024-06-09 11:43:49
on branch trunk
— OHGamepad: Move some elements to OHExtendedGamepad
This allows to have a profile for limited gamepads such as found on the
Nintendo DS rather than only having the raw profile for those. (user: js, size: 18942) [annotate] [blame] [check-ins using]
︙ | |||
29 30 31 32 33 34 35 | 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | - - + + | #import "OFDictionary.h" #import "OFFileManager.h" #import "OFLocale.h" #import "OFNumber.h" #import "OHEvdevDualSense.h" #import "OHEvdevDualShock4.h" |
︙ | |||
727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 | 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 | + + + + + - + - + | break; } } } - (OHGamepad *)gamepad { return self.extendedGamepad; } - (OHExtendedGamepad *)extendedGamepad { @try { if (_vendorID == OHVendorIDSony && _productID == OHProductIDDualSense) return [[[OHEvdevDualSense alloc] initWithController: self] autorelease]; else if (_vendorID == OHVendorIDSony && _productID == OHProductIDDualShock4) return [[[OHEvdevDualShock4 alloc] initWithController: self] autorelease]; else if (_vendorID == OHVendorIDGoogle && _productID == OHProductIDStadiaController) |
︙ |