ObjFW  Diff

Differences From Artifact [4225244e9f]:

To Artifact [4aad12f123]:


531
532
533
534
535
536
537
538


539

540
541
542
543
544
545
546
531
532
533
534
535
536
537

538
539
540
541
542
543
544
545
546
547
548







-
+
+

+







		OFString *name;
		OHGameControllerButton *button;
		OHEvdevGameControllerAxis *axis;

		errno = 0;

		if (read(_fd, &event, sizeof(event)) < (int)sizeof(event)) {
			if (errno == EWOULDBLOCK)
			if (errno == EWOULDBLOCK) {
				objc_autoreleasePoolPop(pool);
				return;
			}

			@throw [OFReadFailedException
			    exceptionWithObject: self
				requestedLength: sizeof(event)
					  errNo: errno];
		}

587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
589
590
591
592
593
594
595


596
597
598
599
600
601
602







-
-








			axis.value = scale(event.value,
			   axis->_minValue, axis->_maxValue);

			break;
		}
	}

	objc_autoreleasePoolPop(pool);
}

- (OFComparisonResult)compare: (OHEvdevGameController *)otherController
{
	unsigned long long selfIndex, otherIndex;

	if (![otherController isKindOfClass: [OHEvdevGameController class]])