ObjFW  Diff

Differences From Artifact [921a669bf3]:

To Artifact [1d9492427b]:


15
16
17
18
19
20
21
22
23


24
25

26
27
28
29
30
31

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


22
23
24

25
26
27
28
29
30

31
32
33
34
35
36
37
38







-
-
+
+

-
+





-
+







 * 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 "HIDGameControllerEmulatedButton.h"
#import "HIDGameControllerAxis.h"
#import "OHGameControllerEmulatedButton.h"
#import "OHGameControllerAxis.h"

@implementation HIDGameControllerEmulatedButton: HIDGameControllerButton
@implementation OHGameControllerEmulatedButton: OHGameControllerButton
- (instancetype)initWithName: (OFString *)name
{
	OF_INVALID_INIT_METHOD
}

- (instancetype)initWithAxis: (HIDGameControllerAxis *)axis
- (instancetype)initWithAxis: (OHGameControllerAxis *)axis
		    positive: (bool)positive
{
	void *pool = objc_autoreleasePoolPush();
	OFString *name;

	@try {
		name = [OFString stringWithFormat: