Differences From Artifact [ca4750fa5a]:
- File tests/gamecontroller/GameControllerTests.m — part of check-in [c31d8b6c37] at 2024-05-09 15:02:24 on branch gamecontroller — Add interactive tests for OFGameController (user: js, size: 2240) [annotate] [blame] [check-ins using]
To Artifact [783f64a599]:
- File tests/gamecontroller/GameControllerTests.m — part of check-in [4fc79b14db] at 2024-05-09 15:13:43 on branch gamecontroller — OFGameController: Handle D-Pad via ABS_HAT0[XY] (user: js, size: 2290) [annotate] [blame] [check-ins using]
︙ | |||
61 62 63 64 65 66 67 68 69 70 71 72 73 74 | 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | + | if (++i == 5) { [OFStdOut writeString: @"\n"]; i = 0; } else [OFStdOut writeString: @" "]; } [OFStdOut setForegroundColor: [OFColor gray]]; [OFStdOut writeString: @"\n"]; for (i = 0; i < controller.numAnalogSticks; i++) { OFPoint position = [controller positionOfAnalogStickWithIndex: i]; [OFStdOut writeFormat: @"(%5.2f, %5.2f) ", position.x, position.y]; |
︙ |