ObjFW  Diff

Differences From Artifact [01c06a1ab0]:

To Artifact [d60d8c7150]:


15
16
17
18
19
20
21
22
23


24
25

26
27
28
29
30
31
32
33


34
35
36

37
38
39
40
41
42
43
15
16
17
18
19
20
21


22
23
24

25
26
27
28
29
30



31
32
33
34

35
36
37
38
39
40
41
42







-
-
+
+

-
+





-
-
-
+
+


-
+







 * 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/>.
 */

#import "config.h"

#import "HIDGameControllerEmulatedAxis.h"
#import "HIDGameControllerButton.h"
#import "OHGameControllerEmulatedAxis.h"
#import "OHGameControllerButton.h"

@implementation HIDGameControllerEmulatedAxis
@implementation OHGameControllerEmulatedAxis
- (instancetype)initWithName: (OFString *)name
{
	OF_INVALID_INIT_METHOD
}

- (instancetype)
    initWithNegativeButton: (HIDGameControllerButton *)negativeButton
	    positiveButton: (HIDGameControllerButton *)positiveButton
- (instancetype)initWithNegativeButton: (OHGameControllerButton *)negativeButton
			positiveButton: (OHGameControllerButton *)positiveButton
{
	void *pool = objc_autoreleasePoolPush();
	OFString *name;;
	OFString *name;

	@try {
		name = [OFString stringWithFormat:
		    @"%@ and %@ as emulated axis",
		    negativeButton.name, positiveButton.name];
	} @catch (id e) {
		[self release];