Overview
Comment: | tests/gamecontroller: Clear screen when necessary |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | gamecontroller |
Files: | files | file ages | folders |
SHA3-256: |
6a8f71e0658029c49447bf8d69a31578 |
User & Date: | js on 2024-05-20 01:42:10 |
Other Links: | branch diff | manifest | tags |
Context
2024-05-20
| ||
02:43 | OFGameController: Support Wii Classic Controller check-in: 7f0017a058 user: js tags: gamecontroller | |
01:42 | tests/gamecontroller: Clear screen when necessary check-in: 6a8f71e065 user: js tags: gamecontroller | |
01:36 | tests/gamecontroller: Check for new controllers check-in: 32e67cf259 user: js tags: gamecontroller | |
Changes
Modified tests/gamecontroller/GameControllerTests.m from [e40dd8a1f4] to [7ca50085d6].
︙ | ︙ | |||
96 97 98 99 100 101 102 | #elif defined(OF_NINTENDO_3DS) gfxInitDefault(); atexit(gfxExit); consoleInit(GFX_TOP, NULL); #endif | < < > > | 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | #elif defined(OF_NINTENDO_3DS) gfxInitDefault(); atexit(gfxExit); consoleInit(GFX_TOP, NULL); #endif for (;;) { void *pool = objc_autoreleasePoolPush(); if (_lastControllersUpdate == nil || -[_lastControllersUpdate timeIntervalSinceNow] > 1) { [_controllers release]; [_lastControllersUpdate release]; _controllers = [[OFGameController controllers] retain]; _lastControllersUpdate = [[OFDate alloc] init]; [OFStdOut clear]; } [OFStdOut setCursorPosition: OFMakePoint(0, 0)]; for (OFGameController *controller in _controllers) { OFArray OF_GENERIC(OFGameControllerButton) *buttons = controller.buttons.allObjects.sortedArray; |
︙ | ︙ |