ObjFW  Diff

Differences From Artifact [ba31cb5921]:

To Artifact [a152c52018]:


263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
- (float)pressureForButton: (OFGameControllerButton)button
{
	if (button == OFGameControllerLeftTriggerButton)
		return _leftTriggerPressure;
	if (button == OFGameControllerRightTriggerButton)
		return _rightTriggerPressure;

	return ([self.pressedButtons containsObject: button] ? 1 : 0);
}

- (OFString *)description
{
	return [OFString stringWithFormat: @"<%@: %@>", self.class, self.name];
}
@end







<
<
|
<
<
<


263
264
265
266
267
268
269


270



271
272
- (float)pressureForButton: (OFGameControllerButton)button
{
	if (button == OFGameControllerLeftTriggerButton)
		return _leftTriggerPressure;
	if (button == OFGameControllerRightTriggerButton)
		return _rightTriggerPressure;



	return [super pressureForButton: button];



}
@end