ObjFW  Diff

Differences From Artifact [deafbe8df3]:

  • File src/hid/OHEvdevGamepad.m — part of check-in [31f8c31ac7] at 2024-06-08 23:04:34 on branch trunk — OHEvdevGamepad: Fix name of trigger buttons (user: js size: 6602)

To Artifact [f71df4684b]:

  • File src/hid/OHEvdevExtendedGamepad.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: 6618)

15
16
17
18
19
20
21
22

23
24
25
26
27
28
29
30

31
32
33
34
35
36
37
15
16
17
18
19
20
21

22
23
24
25
26
27
28
29

30
31
32
33
34
35
36
37







-
+







-
+







 * You should have received a copy of the GNU Lesser General Public License
 * version 3.0 along with this program. If not, see
 * <https://www.gnu.org/licenses/>.
 */

#include "config.h"

#import "OHEvdevGamepad.h"
#import "OHEvdevExtendedGamepad.h"
#import "OFDictionary.h"
#import "OHEvdevGameController.h"
#import "OHGameControllerDirectionalPad.h"
#import "OHGameControllerEmulatedTriggerButton.h"

#import "OFInvalidArgumentException.h"

@implementation OHEvdevGamepad
@implementation OHEvdevExtendedGamepad
- (instancetype)initWithController: (OHEvdevGameController *)controller
{
	self = [super init];

	@try {
		void *pool = objc_autoreleasePoolPush();